# hyperf/hyperf

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/hyperf-hyperf).**

6,852 stars · 1,299 forks · PHP · MIT

## Links

- GitHub: https://github.com/hyperf/hyperf
- Homepage: https://www.hyperf.io
- awesome-repositories: https://awesome-repositories.com/repository/hyperf-hyperf.md

## Description

Hyperf is a high-performance PHP coroutine framework designed for building microservices and middleware. It utilizes non-blocking coroutines to handle high concurrency and low-latency request processing, providing a foundation for scalable distributed systems.

The framework is distinguished by an aspect-oriented programming based dependency injector that enables pluggable components and meta-programming. It includes a coroutine-optimized object-relational mapper with integrated model caching and an orchestration toolkit for microservice governance, featuring service discovery, circuit breakers, and distributed tracing.

Hyperf provides comprehensive capabilities for API integration via HTTP, gRPC, and JSON-RPC servers, as well as real-time bidirectional communication through WebSockets. It features a distributed task scheduler for managing recurring jobs and asynchronous queues, and supports a wide array of messaging brokers including AMQP and Kafka. The system also includes tools for database schema migration, centralized configuration management, and system observability via Prometheus and Jaeger.

## Tags

### Web Development

- [High-Performance HTTP Servers](https://awesome-repositories.com/f/web-development/high-performance-http-servers.md) — Provides a high-performance coroutine-based server optimized for low-latency, high-throughput microservice delivery.
- [PHP Coroutine Runtimes](https://awesome-repositories.com/f/web-development/server-side-frameworks/kotlin-frameworks/coroutine-frameworks/php-coroutine-runtimes.md) — Provides a high-performance PHP runtime that leverages coroutines to handle high concurrency and low-latency request processing. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [PHP Implementations](https://awesome-repositories.com/f/web-development/server-side-frameworks/kotlin-frameworks/coroutine-frameworks/php-implementations.md) — Implements a high-performance PHP framework utilizing non-blocking coroutines to handle high concurrency and low-latency requests.
- [Web API Frameworks](https://awesome-repositories.com/f/web-development/web-api-frameworks.md) — Provides a comprehensive framework for building structured HTTP-based interfaces for web services. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [gRPC Service Implementations](https://awesome-repositories.com/f/web-development/api-management-tools/api-development-management/api-client-implementations/grpc-service-implementations.md) — Implements gRPC clients with built-in load balancing and health monitoring across multiple endpoints. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [HTTP Request Handling](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-request-handling.md) — Provides built-in HTTP request routing via controllers and middleware supporting all standard methods. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [HTTP Request Handlers](https://awesome-repositories.com/f/web-development/backend-development/web-frameworks/routing-request-handling/http-request-handlers.md) — Directs incoming HTTP traffic to specific controllers with support for parameter injection and multiple formats. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Custom Middleware Development](https://awesome-repositories.com/f/web-development/custom-middleware-development.md) — Implements a modular request interceptor system for handling cross-cutting concerns and shared logic. ([source](https://github.com/hyperf/hyperf#readme))
- [Request Mappings](https://awesome-repositories.com/f/web-development/request-mappings.md) — Maps incoming requests to controllers, annotations, or anonymous functions for HTTP and gRPC servers. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Coroutine Frameworks](https://awesome-repositories.com/f/web-development/server-side-frameworks/kotlin-frameworks/coroutine-frameworks.md) — Implements a high-throughput web framework using non-blocking coroutines and automated OpenAPI documentation.
- [Concurrency Primitives](https://awesome-repositories.com/f/web-development/server-side-frameworks/kotlin-frameworks/coroutine-frameworks/concurrency-primitives.md) — Ships barriers and mutexes to synchronize asynchronous operations and ensure predictable execution flows. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [API Schema Generation](https://awesome-repositories.com/f/web-development/api-schema-generation.md) — Scans application paths and annotations to automatically generate interactive Swagger API documentation. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [HTTP Response Handling](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-response-handling.md) — Sends standardized PSR-7 response objects to clients using a high-performance server engine. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Response Streaming](https://awesome-repositories.com/f/web-development/backend-development/request-response-handling/http-response-handling/response-streaming.md) — Delivers data using HTTP chunking to improve the speed of response delivery. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [Exception Handling](https://awesome-repositories.com/f/web-development/exception-handling.md) — Captures and processes application errors using prioritized exception handlers to map them to structured API responses. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [HTML Templating Engines](https://awesome-repositories.com/f/web-development/html-templating-engines.md) — Generates HTML content using a variety of supported template engines like Blade, Twig, and Smarty. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Middleware Configuration](https://awesome-repositories.com/f/web-development/middleware-configuration.md) — Provides an interface to configure the execution order of middleware in the request-response pipeline. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [Real-Time Communication](https://awesome-repositories.com/f/web-development/real-time-communication.md) — Ships a coroutine-based WebSocket server for real-time bidirectional communication and live data streaming.
- [Request Context Management](https://awesome-repositories.com/f/web-development/request-context-management.md) — Applies different validation rules to requests based on the current execution context scene. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [Response Formatting](https://awesome-repositories.com/f/web-development/response-formatting.md) — Transforms database models into standardized formats for consistent output across HTTP and gRPC. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [OpenAPI Specification Generators](https://awesome-repositories.com/f/web-development/restful-apis/documentation-schemas/openapi-specification-generators.md) — Automatically produces OpenAPI specifications by extracting attributes and validation rules from code. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))

### Part of an Awesome List

- [Microservices](https://awesome-repositories.com/f/awesome-lists/devops/microservices.md) — Implements microservice governance patterns including circuit breakers, service discovery, and distributed tracing.
- [Language Toolkits](https://awesome-repositories.com/f/awesome-lists/devtools/language-toolkits.md) — Performant PHP CLI framework based on Swoole.

### Data & Databases

- [Database ORMs](https://awesome-repositories.com/f/data-databases/database-orms.md) — Provides a comprehensive ORM supporting UUIDs, ULIDs, soft deletes, and dynamic relation resolution. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [Object-Relational Mappers](https://awesome-repositories.com/f/data-databases/object-relational-mappers.md) — Hyperf binds database tables to objects with support for soft deletes and attribute casting. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Object-Relational Mapping Models](https://awesome-repositories.com/f/data-databases/object-relational-mapping-models.md) — Maps database tables to objects with support for custom casting, morph relations, and macroable behaviors. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Connection Pooling](https://awesome-repositories.com/f/data-databases/connection-pooling.md) — Implements connection pooling to reuse database and cache connections, reducing handshake overhead and improving performance. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [ORM Model Caching](https://awesome-repositories.com/f/data-databases/data-caching/orm-model-caching.md) — Implements a coroutine-optimized ORM with integrated model caching to improve data retrieval performance. ([source](https://github.com/hyperf/hyperf#readme))
- [Request Data Integrity](https://awesome-repositories.com/f/data-databases/data-governance-modeling/data-modeling-schemas/schema-based-data-models/model-level-integrity-enforcement/request-data-integrity.md) — Enforces data integrity using unique model checks, list validation, and scene-based rule rewriting for requests. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Kafka Connectors](https://awesome-repositories.com/f/data-databases/data-ingestion/kafka-connectors.md) — Provides Kafka connectors to subscribe to multiple topics for real-time processing and analysis of streaming data. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.1.md))
- [Database Caching Middleware](https://awesome-repositories.com/f/data-databases/database-caching-middleware.md) — Implements a coroutine-optimized ORM with integrated model caching to avoid repetitive database lookups. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Table Schemas](https://awesome-repositories.com/f/data-databases/database-management-systems/database-systems-management/database-management/schema-designers/table-schemas.md) — Includes a fluent API for creating, modifying, and dropping database tables and indexes. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Database Record Querying](https://awesome-repositories.com/f/data-databases/database-record-querying.md) — Includes a fluent query builder for retrieving and manipulating database records using raw SQL and JSON operations. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Schema Definitions](https://awesome-repositories.com/f/data-databases/database-schema-designers/schema-definitions.md) — Provides a blueprint API for programmatically defining database table structures, columns, and constraints. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [Database Transaction Management](https://awesome-repositories.com/f/data-databases/database-transaction-management.md) — Controls database transactions automatically using annotations to ensure atomic operations. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [In-Memory Caches](https://awesome-repositories.com/f/data-databases/in-memory-caches.md) — Provides general data caching using in-memory or external backends to reduce data retrieval time. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Kafka Client Integrations](https://awesome-repositories.com/f/data-databases/kafka-client-integrations.md) — Integrates Kafka client libraries to produce messages with support for sticky assignors and retry configurations. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Schema Migration Tools](https://awesome-repositories.com/f/data-databases/schema-migration-tools.md) — Automatically generates versioned database schema migration scripts by analyzing existing database structures. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Schema Migration Utilities](https://awesome-repositories.com/f/data-databases/schema-migration-utilities.md) — Supports defining table structures and adding descriptive column comments during the schema migration process. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.1.md))

### Development Tools & Productivity

- [Distributed Task Schedulers](https://awesome-repositories.com/f/development-tools-productivity/distributed-task-schedulers.md) — Provides a distributed task scheduler for managing recurring jobs across multiple servers with precision timing.
- [Background Task Schedulers](https://awesome-repositories.com/f/development-tools-productivity/background-task-schedulers.md) — Provides a crontab system for executing background tasks on a fixed timetable with lifecycle event support. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [Remote Configuration Retrieval](https://awesome-repositories.com/f/development-tools-productivity/configuration-inspection/remote-configuration-retrieval.md) — Retrieves application settings from external configuration centers such as Apollo, Consul, Etcd, and Aliyun ACM. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Job Schedulers](https://awesome-repositories.com/f/development-tools-productivity/job-schedulers.md) — Automates recurring operations on a fixed timetable with support for singleton tasks. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))

### Networking & Communication

- [Coroutine-Compatible Clients](https://awesome-repositories.com/f/networking-communication/coroutine-compatible-clients.md) — Connects to databases and message brokers using non-blocking coroutine clients for MySQL, Redis, and AMQP. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [Distributed Service Connectivity](https://awesome-repositories.com/f/networking-communication/distributed-service-connectivity.md) — Provides coroutine-compatible connectivity to databases, caches, service discovery tools, and RPC protocols. ([source](https://github.com/hyperf/hyperf#readme))
- [WebSocket Servers](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/distributed-computing/communication-protocols/websocket-implementations/websocket-servers.md) — Implements a WebSocket server managing bidirectional communication using connection-level contexts and direct file descriptors. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Coroutine Channels](https://awesome-repositories.com/f/networking-communication/distributed-systems-p2p/peer-to-peer-networking/state-synchronization/coroutine-channels.md) — Implements coroutine channels to enable safe and efficient data exchange between concurrent execution flows. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [gRPC Interfaces](https://awesome-repositories.com/f/networking-communication/grpc-interfaces.md) — Integrates gRPC communication using clients that support lazy initialization and automatic reconnection. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [JSON-RPC Implementations](https://awesome-repositories.com/f/networking-communication/json-rpc-implementations.md) — Provides full server and client implementations for JSON-RPC communication with custom data normalizers. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [Message Brokers](https://awesome-repositories.com/f/networking-communication/message-brokers.md) — Facilitates asynchronous communication via a variety of message brokers including AMQP, NSQ, and NATS. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [RPC Servers](https://awesome-repositories.com/f/networking-communication/rpc-servers.md) — Provides high-performance servers for gRPC and JSON-RPC communication with built-in load balancing and health monitoring.
- [Service Discovery Integrations](https://awesome-repositories.com/f/networking-communication/service-discovery-integrations.md) — Provides deep integration with Nacos for service discovery, configuration management, and heartbeat monitoring. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
- [Circuit Breakers](https://awesome-repositories.com/f/networking-communication/traffic-management-gateways/circuit-breakers.md) — Implements circuit breaker patterns to isolate failing services and prevent cascading failures in microservices. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [HTTP/2 Support](https://awesome-repositories.com/f/networking-communication/http-2-support.md) — Implements HTTP/2 protocol capabilities for incremental data streaming and multiplexing. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))

### Programming Languages & Runtimes

- [Execution Synchronization](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/concurrency-models/concurrency/synchronization-primitives/channel-based-concurrency/fiber-based-schedulers/coroutines/execution-synchronization.md) — Provides synchronization primitives to pause execution until a group of concurrent tasks completes. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.1.md))

### Software Engineering & Architecture

- [Aspect-Oriented Programming Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/aspect-oriented-programming-frameworks.md) — Employs aspect-oriented programming to create pluggable components and meta-programming without altering core logic. ([source](https://github.com/hyperf/hyperf#readme))
- [Asynchronous Task Queues](https://awesome-repositories.com/f/software-engineering-architecture/asynchronous-task-queues.md) — Processes background jobs via asynchronous queues with automatic channel reloading for failed tasks. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Concurrent Task Execution](https://awesome-repositories.com/f/software-engineering-architecture/concurrent-task-execution.md) — Executes multiple tasks concurrently using non-blocking coroutines to increase system throughput. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Coroutine Servers](https://awesome-repositories.com/f/software-engineering-architecture/coroutine-servers.md) — Executes applications via a high-performance coroutine server to achieve massive concurrency and low latency. ([source](https://github.com/hyperf/hyperf#readme))
- [Distributed Task Queues](https://awesome-repositories.com/f/software-engineering-architecture/distributed-task-queues.md) — Implements a distributed background job system for managing asynchronous queues and recurring tasks with mutex support.
- [Dependency Injection](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/dependency-injection.md) — Features a robust dependency injection system supporting lazy loading and optional requirements for decoupling components. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Resiliency & Observability Patterns](https://awesome-repositories.com/f/software-engineering-architecture/microservices-design-patterns/resiliency-observability-patterns.md) — Provides a comprehensive toolkit for microservice governance including circuit breakers, service discovery, and distributed tracing. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [Microservices Orchestration Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/microservices-orchestration-frameworks.md) — Includes an orchestration toolkit for managing service discovery, circuit breakers, and distributed tracing in microservice architectures.
- [Pluggable Components](https://awesome-repositories.com/f/software-engineering-architecture/pluggable-components.md) — Provides an AOP-based dependency injector that enables the creation of pluggable and meta-programmable components. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [Automatic Service Registrations](https://awesome-repositories.com/f/software-engineering-architecture/service-instance-managers/automatic-service-registrations.md) — Implements automatic registration and deregistration of service instances with discovery providers, including health checks. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [Global Application Settings](https://awesome-repositories.com/f/software-engineering-architecture/application-lifecycle-management/configuration-management/configuration-scopes/application-configuration/global-application-settings.md) — Implements centralized configuration parameters that govern application-wide runtime behavior. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.2.md))
- [Background Job Dispatchers](https://awesome-repositories.com/f/software-engineering-architecture/background-job-dispatchers.md) — Dispatches background jobs with built-in support for retry limits, result handling, and failure callbacks. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Background Processing](https://awesome-repositories.com/f/software-engineering-architecture/background-processing.md) — Executes compute-intensive tasks and custom processes asynchronously in the background to maintain request responsiveness. ([source](https://github.com/hyperf/hyperf#readme))
- [Parallel Task Spawning](https://awesome-repositories.com/f/software-engineering-architecture/task-scheduling/parallel-task-executors/parallel-task-spawning.md) — Enables running multiple callbacks concurrently to execute independent operations in parallel and merge their results. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))

### DevOps & Infrastructure

- [High-Precision Scheduling](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration/task-execution-frameworks/task-job-management/task-schedulers/os-scheduling-simulations/task-schedulers/high-precision-scheduling.md) — Ships a crontab system capable of executing background jobs with second-level precision. ([source](https://github.com/hyperf/hyperf/blob/master/README.md))
- [Concurrency Control](https://awesome-repositories.com/f/devops-infrastructure/background-job-queues/concurrency-control.md) — Manages queue concurrency with configurable retry attempts and concurrency limits. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Distributed Task Schedulers](https://awesome-repositories.com/f/devops-infrastructure/distributed-task-schedulers.md) — Orchestrates recurring tasks across distributed environments using semantic cron rules and distributed mutexes. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.1.md))
- [Service Governance Platforms](https://awesome-repositories.com/f/devops-infrastructure/service-governance-platforms.md) — Employs ACL tokens to manage service discovery and governance policies within microservice architectures. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))

### Security & Cryptography

- [Input Validation](https://awesome-repositories.com/f/security-cryptography/input-validation.md) — Provides mechanisms to verify and sanitize incoming request data against predefined validation rules. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))

### System Administration & Monitoring

- [Distributed Tracing Instrumentation](https://awesome-repositories.com/f/system-administration-monitoring/distributed-tracing-instrumentation.md) — Instruments JSON-RPC and other internal components to track execution flow and monitor performance spans. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-2.0.md))
- [Metric Collection](https://awesome-repositories.com/f/system-administration-monitoring/metric-collection.md) — Tracks performance data via Prometheus and provides pre-made Grafana dashboards for quantitative system visualization. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Distributed Tracing](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/observability-platforms/distributed-tracing-execution-analysis/distributed-tracing.md) — Tracks requests across distributed microservices using span tags through OpenTracing and Jaeger integration. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG.md))
- [Web Server Performance Monitoring](https://awesome-repositories.com/f/system-administration-monitoring/server-monitors/web-server-performance-monitoring.md) — Collects and exports performance statistics for coroutine-based servers to monitor request execution and health. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))

### User Interface & Experience

- [Input Validation Rules](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/form-validation/input-validation-rules.md) — Implements declarative validation rules for user input, including file type checks and conditional prohibitions. ([source](https://github.com/hyperf/hyperf/blob/master/CHANGELOG-3.0.md))
