A low-level library for event-driven, non-blocking I/O programming in PHP.
ReactPHP is a low-level library for event-driven programming in PHP, providing an event loop and components for building asynchronous, non-blocking I/O applications. It solves the problem of handling high concurrency and long-running tasks efficiently in PHP, enabling developers to create network servers and clients that manage hundreds or thousands of connections without blocking.
PHP developers building high-performance network applications, real-time systems, long-running processes, or those needing to integrate with async services and APIs.
Developers choose ReactPHP for its production-ready, battle-tested architecture that brings true asynchronous capabilities to PHP without requiring extensions. Its modular design, vibrant ecosystem, and compatibility with legacy PHP versions offer a flexible and reliable foundation for event-driven applications.
Event-driven, non-blocking I/O with PHP.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Battle-tested with millions of installations and long-term support releases, ensuring reliability for critical applications as highlighted in the README.
Runs on any PHP installation without requiring extensions, though it can leverage optional ones like ext-ev for better performance, maximizing compatibility.
Components are decoupled and follow PSR standards, allowing easy integration and replacement within existing PHP stacks, promoting flexibility.
Optimized for handling thousands of concurrent connections efficiently through its event loop, making it ideal for network servers and real-time systems.
Requires adoption of promise-based and event-driven patterns, which is a significant paradigm shift from synchronous PHP and can lead to steep learning curves and debugging challenges.
Documentation is spread across individual component repositories, making onboarding and troubleshooting more time-consuming compared to unified documentation.
Core components lack native async database drivers; while third-party libraries exist, integration requires additional effort and may not cover all database systems.