Event-Driven Non-blocking I/O with PHP

React PHP

Github Twitter IRC

ReactPHP is a low-level library for event-driven programming in PHP. At its core is an event loop, on top of which it provides low-level utilities, such as: Streams abstraction, async dns resolver, network client/server, http client/server, interaction with processes. Third-party libraries can use these components to create async network clients/servers and more.

React PHP libraries were introduced into cAPI release v1.3.2 to open the door for event-based application development.

  • Keep an eye on these pages for additional information as we update our documentation to include new API methods to generate and interact with asynchronous event handlers, timers, promises and more!

Additional Resources

React PHP Libraries Included with cAPI

https://learn.getcapi.org/advanced/event-driven-application-development

react-cache
react-datagram
react-dns
react-event-loop
react-http
react-http-client
react-promise
react-promise-timer
react-socket
react-stream

By Developer Sergey Zhuk

http://seregazhuk.github.io