An Introduction to Asynchronous PHP using ReactPHP
summary
ReactPHP is shown end-to-end: the event loop, streams, promises, sockets and an HTTP server that actually runs on PHP. Examples include powering Laravel WebSockets and the open-source Expose (an Ngrok replacement), a telnet chat and a tiny HTTP counter that works in about 21 lines of PHP. A production deploy runs on a small DigitalOcean droplet; code samples show non-blocking IO, piping, periodic timers, and how to build servers that accept many connections without new threads.
AI-written summary · about
chapters (5)
related talks
46mPushing the limits of PHP with React PHP
46mGetting started with ReactPHP Pushing real-time data to the browser
43mGetting started with ReactPHP – Pushing Real-Time Data to the Browser
46mReaktywny PHP
50mImproving Application Performance with ReactPHP
32mAsynchronous PHP
40mIntroduction to ReactPHP and Websockets
01h 04mI saw the future, and its web servers were written in PHP
