Pushing the limits of PHP with React PHP
summary
Claims that React PHP turns PHP into an async, event-driven runtime using an event loop, streams and promises; demos include a pure-PHP HTTP server (PSR-7), an SSE/WebSocket chat, an HTTP client talking to Packagist and Docker, and a Redis-style server implemented in PHP. Surprising benchmarks: ~640 MB/s stream throughput to a container, ~5k–10k hello-world req/s per laptop core and ~50k Redis ops/s from the PHP server. Code samples are short, pure PHP, and runnable as-is.
AI-written summary · about
chapters (6)
related talks
46mGetting started with ReactPHP Pushing real-time data to the browser
33mAn Introduction to Asynchronous PHP using ReactPHP
43mGetting started with ReactPHP – Pushing Real-Time Data to the Browser
50mImproving Application Performance with ReactPHP
46mReaktywny PHP
40mIntroduction to ReactPHP and Websockets
18mMy Take on PHP
01h 04mI saw the future, and its web servers were written in PHP
