We normally think of PHP as executing instructions sequentially, but new technologies like Node.js are exciting because they break that paradigm.
These event-based techniques are arriving in PHP and deliver cool tricks:
- Run multiple blocks of code at once to speed up page loading
- Respond to events and inject information into running scripts
- Talk directly to the network or even become a socket service
Assuming no previous JavaScript/Node experience, we'll cover the basics as well as some real-life examples using libraries like ReactPHP, Kraken and Amp.