Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Microservices
  3. Hyperf

Hyperf

MITPHPv3.2.4

A high-performance PHP coroutine framework for building microservices and middleware with extreme speed and flexibility.

Visit WebsiteGitHubGitHub
6.9k stars1.3k forks0 contributors

What is Hyperf?

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.

Target Audience

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.

Value Proposition

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.

Overview

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

Use Cases

Best For

  • Building high-performance microservices architectures in PHP
  • Developing coroutine-based middleware or gateway servers
  • Creating distributed systems with gRPC, JSON RPC, or WebSocket services
  • Migrating from PHP-FPM to coroutine-driven applications for better throughput
  • Implementing production-ready APIs with built-in tools like circuit breakers and connection pools
  • Leveraging AOP and dependency injection for modular, pluggable component design

Not Ideal For

  • Projects deployed on shared hosting or environments without Swoole/Swow extension support
  • Teams building simple CRUD applications where PHP-FPM performance is sufficient and development speed is prioritized
  • Developers heavily invested in WordPress, Drupal, or other FPM-centric CMS ecosystems with no coroutine compatibility
  • Organizations requiring a vast ecosystem of third-party plugins and immediate community support without coroutine adaptations

Pros & Cons

Pros

Coroutine Performance Boost

Leverages Swoole/Swow to handle over 100k requests per second in benchmarks, decisively outperforming PHP-FPM frameworks for high-traffic scenarios.

Modular AOP Design

Dependency injection enables aspect-oriented programming via annotations, making components pluggable and meta-programmable for flexible architecture.

Comprehensive Coroutine Clients

Includes built-in, coroutine-compatible clients for MySQL, Redis, gRPC, WebSocket, and more, eliminating the need for custom async implementations.

PSR Standards Adherence

All core components follow PSR standards, ensuring interoperability with other PHP frameworks and reducing vendor lock-in risks.

Cons

Extension Dependency Complexity

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.

Steeper Asynchronous Learning Curve

Demands understanding of coroutine and asynchronous programming paradigms, which differ from traditional PHP-FPM synchronous models and may slow onboarding.

Smaller Ecosystem Compared to Mainstream

Has a more limited set of third-party packages and community resources than established frameworks like Laravel, potentially increasing development time for niche needs.

Frequently Asked Questions

Quick Stats

Stars6,911
Forks1,296
Contributors0
Open Issues364
Last commit9 days ago
CreatedSince 2018

Tags

#swoole#json-rpc#high-performance#dependency-injection#distributed-systems#microservice#coroutine#psr-15#grpc#psr-7#php-framework#microservices#aop#psr-standards#middleware

Built With

S
Swoole
P
PHP

Links & Resources

Website

Included in

Microservices14.2k
Auto-fetched 1 day ago

Related Projects

SwoftSwoft

🚀 PHP Microservice Full Coroutine Framework

Stars5,532
Forks761
Last commit3 years ago
SpiralSpiral

A high-performance PHP/Go framework

Stars0
Forks0
Last commit
API PlatformAPI Platform

API-first web framework on top of Symfony with JSON-LD, Schema.org and Hydra support

Stars0
Forks0
Last commit
SlimSlim

Micro-framework that helps you quickly write simple yet powerful web applications and APIs

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub