~/talk

Going serverless with PHP and Bref.sh

Talkat PHP UK Conference 2022 · 2022-02-16..02-18· [serverless, php]
slides:none on file

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

  1. 0:00Start
  2. 6:36Advantage of Serverless
  3. 8:13Stripe
  4. 11:35Docker Compose Run Composer Install
  5. 17:21Php Runtime
  6. 20:47Change the Directory
  7. 21:18Index Php File
  8. 21:39Check Where Your Index Php File Is
  9. 26:13File Uploads
  10. 28:29Middleware
  11. 30:59Cloudwatch Logging
  12. 32:41Deploy this to Amazon Lambda
  13. 33:22Default Serverless Yama File
  14. 35:14Secrets Manager
  15. 35:53Functions
  16. 37:37Exclude Files from Deployment
  17. 38:32S3 Bucket Names
  18. 41:21Aws Vault
  19. 47:22Deploy to S3 and Cloudfront
  20. 49:06Cross-Origin Resource Sharing
  21. 56:41Least Privilege
  22. 57:14Inverse Permissions
  23. 1:01:42Cloudfront Validations
  24. 1:05:32Data Storage
  25. 1:07:44Serverless Data Storage Solutions
  26. 1:09:33Dynamodb
  27. 1:26:54Attribute Definitions
  28. 1:27:22Provision Throughput
  29. 1:33:38Maintaining Good Privileges
  30. 1:39:59Control Flow
  31. 1:40:17Web Hooks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.