Going serverless with PHP and Bref.sh
summary
Shows that PHP runs on AWS Lambda using Bref on AWS Lambda and the Serverless framework, migrates a Slim app (no sessions, logs to stderr, /tmp ephemeral) and actually deploys a Stripe payment system with a React front end. Front end goes to S3 + CloudFront (10–15 minute distribution propagation, cache invalidation needed), backend stores payments in DynamoDB for serverless storage and buffers webhooks with SQS for reliable processing; deployment creates ~11 resources, package ~13MB, timeouts 28s, and the demo both runs locally (Docker, DynamoDB Local) and deploys to AWS.
AI-written summary · about
chapters (31)
- 0:00Start
- 6:36Advantage of Serverless
- 8:13Stripe
- 11:35Docker Compose Run Composer Install
- 17:21Php Runtime
- 20:47Change the Directory
- 21:18Index Php File
- 21:39Check Where Your Index Php File Is
- 26:13File Uploads
- 28:29Middleware
- 30:59Cloudwatch Logging
- 32:41Deploy this to Amazon Lambda
- 33:22Default Serverless Yama File
- 35:14Secrets Manager
- 35:53Functions
- 37:37Exclude Files from Deployment
- 38:32S3 Bucket Names
- 41:21Aws Vault
- 47:22Deploy to S3 and Cloudfront
- 49:06Cross-Origin Resource Sharing
- 56:41Least Privilege
- 57:14Inverse Permissions
- 1:01:42Cloudfront Validations
- 1:05:32Data Storage
- 1:07:44Serverless Data Storage Solutions
- 1:09:33Dynamodb
- 1:26:54Attribute Definitions
- 1:27:22Provision Throughput
- 1:33:38Maintaining Good Privileges
- 1:39:59Control Flow
- 1:40:17Web Hooks
related talks
44mServerless PHP applications with Bref
39mServerless PHP applications with Bref
01h 03mServerless PHP: how does it really work?
50mServerless PHP applications with Bref
52mPHP on serverless, how it works under the hood
56mRunning Your PHP Site on AWS Lambda
59mServerless PHP Applications
43mDeveloping APIs with Laravel and Serverless on AWS
