#3131st of 45 in Backend and cloud templates
hyperf
Coroutine PHP framework on Swoole or Swow for microservices and web servers
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 6.9k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Aug 2026
- Language
- PHP
6,772 on 21 Apr 20266,916 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Hyperf is a PHP 8.1+ CLI framework that runs on Swoole 5.0+ or Swow 1.4+ coroutine servers instead of PHP-FPM. It combines dependency injection with AOP, annotations and events, and ships coroutine-compatible clients and servers for MySQL, Redis, gRPC, JSON-RPC, WebSocket, AMQP, Consul and ETCD. Core components follow PSR standards and can be used in other frameworks.
Who it is for: PHP developers building coroutine microservices or high-throughput APIs
Strengths
- Coroutine servers on Swoole or Swow; README benchmark shows about 103,921 requests/sec on 8 cores
- Built-in coroutine clients for MySQL, Redis, gRPC, JSON-RPC, RabbitMQ, NSQ, Nats, Consul and ETCD
- DI container with AOP and annotations makes classes pluggable; components follow PSR standards
- MIT license with multilingual docs and per-component unit tests
Weaknesses
- Requires the Swoole or Swow extension, so it does not run under plain PHP-FPM
- No AI or model-serving features; it is a general-purpose backend framework
- Runs as a long-lived CLI process, so code must be coroutine-safe
- Benchmark is a single wrk request to the root URL, not a realistic workload
What it needs
- PHP
- Needs PHP 8.1+, Swoole 5.0+ or Swow 1.4+
Quick answers
Is hyperf open source?
Yes. Its code is on GitHub under the MIT license.
Also in Backend and cloud templates
See all 45| Rank | Project | Score |
|---|---|---|
| 1 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| 2 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| 3 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 90 out of 100 |
| #4 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 88 out of 100 |
| #5 | echoMinimalist Go web framework with a radix-tree router and middleware | 86 out of 100 |