# hyperf/hyperf

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

Repository: https://github.com/hyperf/hyperf
Canonical: https://ross.abutalabs.com/products/hyperf
Homepage: https://www.hyperf.io
Language: PHP
License: MIT
License Family: permissive
Topics: swoole, coroutine, hyperf, microservice, aop, json-rpc, grpc, psr-7, psr-15, psr-14, opentracing, amqp, dependency-injection, websocket, framework, annotation, attributes, microservices, php, swow
Last push: 2026-08-17T01:58:30+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 2834, "days_push": 17, "days_rel": 23, "gap_med": 18.5, "n_releases_24m": 31}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6892, forks 1298 (observed 2026-08-28T04:09:51.163228+00:00)

## What it is
Hyperf is a high-performance PHP coroutine framework built on Swoole and Swow, designed for building microservices, middleware, web systems, and APIs. It features an AOP-enabled dependency injector and ships with coroutine-compatible components for RPC, messaging, caching, tracing, and more, all following PSR standards.

## Use cases
- build high-performance PHP microservices
- create coroutine-based WebSocket servers
- implement JSON-RPC or gRPC services in PHP
- build APIs that outperform PHP-FPM frameworks
- add RabbitMQ or Kafka-style messaging to PHP apps
- build middleware and distributed systems in PHP

## When to choose
- you need extreme throughput in PHP beyond PHP-FPM limits
- you're building microservices or middleware in PHP
- you want coroutine-compatible clients for MySQL, Redis, AMQP, gRPC out of the box
- you value PSR-standard, pluggable components with AOP and DI

## When to avoid
- you need simple shared-hosting or PHP-FPM deployment
- your team is unfamiliar with coroutine programming models
- you need a framework with a larger ecosystem of third-party packages like Laravel or Symfony
- you target Windows-native environments, since Swoole/Swow are Unix-oriented

## Facets
- artifact type: framework
- maturity: active
- function: web-framework, api-framework, websocket, rpc, middleware, message-queue, caching, scheduling, tracing, rate-limiting, http-client, http-server
- domain: web-development, backend, microservices, apis, developer-tools
- platform: php, cli, self-hosted
- tags: swoole, swow, coroutine, aop, annotations, -rpc, grpc, amqp, psr-standards, connection-pool, circuit-breaker, microservices, dependency-injection, linux, docker

## Member repositories
- hyperf/hyperf (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:51.163228+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:41:38.728622+00:00, confidence not recorded.
  - readme: https://github.com/hyperf/hyperf (fetched 2026-08-28T04:09:51.163228+00:00, sha f34e82525997)
  - homepage: https://www.hyperf.io (fetched 2026-08-29T08:37:26.237159+00:00, sha 06370fca545f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
