React is a library that makes it possible to event-driven programming in PHP, much like JavaScript does. Based on the reactor pattern, it essentially acts as an event loop, allowing various other third-party libraries using its components to write asynchronous code.
The page at https://en.wikipedia.org/wiki/Reactor_pattern states, The reactor design pattern is an event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs.Â
The library is available at https://github.com/reactphp/react
![](https://static.packt-cdn.com/products/9781785882814/graphics/assets/5c472296-7f61-42b0-9e8e-df1a1be7e38a.png)