A high-performance PHP coroutine framework for building microservices and middleware with extreme speed and flexibility.
Hyperf is a high-performance PHP coroutine framework designed for building microservices, middleware, and distributed applications. It leverages Swoole or Swow to provide extreme speed and flexibility, decisively outperforming traditional PHP-FPM frameworks. The framework includes a comprehensive set of coroutine-compatible components and an AOP-enabled dependency injector for pluggable architecture.
PHP developers building microservices, high-traffic APIs, middleware, or distributed systems who need coroutine-powered performance and modular design. It suits teams transitioning from PHP-FPM to coroutine-based architectures.
Developers choose Hyperf for its unique combination of hyperspeed (via Swoole/Swow) and flexibility (via AOP and PSR-compliant components), offering a production-ready ecosystem with coroutine-optimized clients and tools not found in typical PHP frameworks.
🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages Swoole/Swow to handle over 100k requests per second in benchmarks, decisively outperforming PHP-FPM frameworks for high-traffic scenarios.
Dependency injection enables aspect-oriented programming via annotations, making components pluggable and meta-programmable for flexible architecture.
Includes built-in, coroutine-compatible clients for MySQL, Redis, gRPC, WebSocket, and more, eliminating the need for custom async implementations.
All core components follow PSR standards, ensuring interoperability with other PHP frameworks and reducing vendor lock-in risks.
Requires Swoole 5.0+ or Swow 1.4+, which can be non-trivial to install and maintain, especially on Windows or in environments with restricted system access.
Demands understanding of coroutine and asynchronous programming paradigms, which differ from traditional PHP-FPM synchronous models and may slow onboarding.
Has a more limited set of third-party packages and community resources than established frameworks like Laravel, potentially increasing development time for niche needs.