Getting started with ReactPHP – Pushing Real-Time Data to the Browser
summary
Builds a working TCP chat server and a single-file HTTP server that streams Server-Sent Events to the browser, all in pure PHP no extensions. Uses ReactPHP core pieces: event loop, streams, sockets, promises and timers to push real-time JSON/text. Live demos show an EventSource client receiving chat messages and a concurrent HTTP client that issues three requests in roughly the same time as one (measured ~0.13s per request ≈ 8 req/s). Project is production-ready for 6+ years with ~150 projects and 300+ packages.
AI-written summary · about
chapters (6)
related talks
46mGetting started with ReactPHP Pushing real-time data to the browser
46mPushing the limits of PHP with React PHP
40mIntroduction to ReactPHP and Websockets
33mAn Introduction to Asynchronous PHP using ReactPHP
50mImproving Application Performance with ReactPHP
46mReaktywny PHP
41mPowering Real-Time with PHP in 2020!
40mIntegrating React.js into a PHP application
