Build a PHP API server that handles thousands of concurrent users without expensive hardware
Add real-time features like chat or live updates to a PHP application using WebSocket
Process background tasks asynchronously so API responses stay fast
Replace a slow traditional PHP setup where each request restarts the entire application
Requires the Swoole PHP extension installed on the server. Documentation is primarily in Chinese. Best suited for Linux servers. Not a drop-in replacement for traditional PHP frameworks.
EasySwoole is a PHP framework designed for building high-performance API servers. It is built on top of Swoole, a lower-level PHP extension that allows PHP applications to run as persistent, always-on processes rather than restarting from scratch on every web request. That persistent mode removes a common bottleneck in traditional PHP applications and allows the server to handle many more simultaneous connections. The framework supports HTTP, TCP, UDP, and WebSocket connections in the same application. It is aimed at developers building backend services or APIs where speed and the ability to handle large numbers of concurrent users matter. The README, written in Chinese, highlights support for asynchronous processing, coroutines, multiple processes, and multiple threads, as well as CPU affinity and a task queue system. A benchmark result included in the README shows the framework handling around 8,600 requests per second for a simple response on a single-core server with 1GB of RAM running on a basic cloud instance. The test used 100 concurrent connections and 50,000 total requests, with 99% of responses completing in under 13 milliseconds and no failed requests. Documentation is available at the project's official website and is maintained in a separate GitHub repository using the Gitbook format. A QQ group number is listed for community support, which is common for Chinese open-source projects. The README is brief and written primarily in Chinese.
← easy-swoole on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.