I saw the future, and its web servers were written in PHP
summary
Covers how PHP can move beyond CGI-style request/response by using PHP-based web servers and event-driven components such as ReactPHP, Icicle, Aerys and PHP-PM to keep frameworks (e.g. Symfony) running in a loop rather than restarting per request. Compares this approach to language-native servers like Jetty/Puma/Gunicorn, explains engine changes in PHP 7 (catchable fatal errors) that enable long-running PHP servers, and outlines performance gains and new capabilities (streaming request bodies, WebSocket upgrades) along with trade-offs required.
AI-written summary · about
chapters (13)
- 0:00Start
- 6:21HOW CGI WORKS
- 8:46CGIVARIABLES (SEE $_SERVER)
- 12:13PHP WEB SAPI (SIMPLIFIED)
- 15:21PHP CGI EXECUTION LIFECYCLE (SIMPLIFIED)
- 19:18mod php EXECUTION LIFECYCLE (SIMPLIFIED)
- 21:02APACHE PROCESS MODELS
- 33:16RUBY/RACK
- 38:39THE RACK/WSGI STACKS
- 40:44PHP IS NOW READY
- 44:35FRAMEWORKS FOR EVENT- DRIVEN NON-BLOCKING I/O
- 45:47IT'S ALL A REACTOR
- 47:37SIMPLE WEB SERVER, ReactPHP
related talks
46mPushing the limits of PHP with React PHP
33mAn Introduction to Asynchronous PHP using ReactPHP
27mThe Future of PHP Is In The Clouds
18mMy Take on PHP
46mGetting started with ReactPHP Pushing real-time data to the browser
50mImproving Application Performance with ReactPHP
43mGetting started with ReactPHP – Pushing Real-Time Data to the Browser
46mReaktywny PHP
