Symfony Runtime: wrapping API Platform in a lambda
summary
Symfony Runtime (Symfony 5.3) packages any PHP app as a closure that returns a closure, letting a pluggable runtime supply arguments and handle return values so apps no longer read superglobals. It uses an autogenerated autoload_runtime (composer plugin) and a resolver/runner convention to map PSR‑7/PSR‑15 or HttpFoundation apps to engines like PHP‑FPM, RoadRunner, ReactPHP, Bref/AWS Lambda or Swoole (~50% boost); Tobias already supplies many runtimes so it works today.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:05What is Symfony Runtime
- 3:54Decoupling from global state
- 7:24Wrapping apps in a box
- 10:58Benefits of runtime component
- 13:05Swapping infrastructure
- 15:55PSR-7 example
- 18:04Under the hood
- 22:20Extending runtimes
- 25:27Solving return value challenge
- 28:18Five critical steps
- 30:46Comparison with Laravel Octane
- 32:52Future possibilities
- 34:19Q&A








