Hyperf coroutine framework is a high-performance, highly flexible PHP coroutine framework based on Swoole4.5+. It has a built-in coroutine server and a large number of commonly used components. Its performance is qualitatively improved compared to the traditional framework based on PHP-FPM, and it provides ultra-high performance. While maintaining high performance, it also maintains extremely flexible scalability. Standard components are implemented based on PSR standards and are based on powerful dependency injection design, ensuring that most components or classes are replaceable and reusable.
In addition to the common coroutine version of MySQL client and Redis client, the framework component library also prepares for you the coroutine version of EloquentORM, WebSocket server and client, JSONRPC server and client, GRPC server and client, Zipkin/Jaeger (OpenTracing) client, GuzzleHTTP client, Elasticsearch client, Consul client, ETCD client, AMQP component, NSQ component, Nats component, Apollo configuration center, Alibaba Cloud ACM application configuration management, ETCD configuration center, based on The token bucket algorithm's current limiter, universal connection pool, circuit breaker, Swagger document generation, SwooleTracker, view engine, Snowflake global ID generator and other components save you the trouble of implementing the corresponding coroutine version yourself.
Hyperf also provides PSR-11-based dependency injection containers, annotations, AOP aspect-oriented programming, PSR-15-based middleware, custom processes, PSR-14-based event managers, and Redis/RabbitMQ/NSQ/Nats message queues. , automatic model caching, PSR-16-based caching, Crontab second-level scheduled tasks, Translation internationalization, Validation verifier and other very convenient functions to meet a variety of technical scenarios and business scenarios, and can be used out of the box.
Original intention of the framework:
Although the framework developed based on the PHP language is now in an era of contention among a hundred schools of thought, we still have not seen a perfect framework that can coexist with elegant design and ultra-high performance, nor have we seen a framework that truly paves the way for PHP microservices. This is We will continue to invest and work hard for the original intention of Hyperf and its team members, and you are welcome to join us and participate in open source construction.
Design concept:
Hyperspeed+Flexibility=Hyperf, from the name we take ultra-high speed and flexibility as the genes of Hyperf.
For ultra-high speed, we are based on the Swoole coroutine and perform a lot of optimizations on the framework design to ensure ultra-high-performance output.
For flexibility, we are based on Hyperf's powerful dependency injection components. The components are all implemented based on the PSR standard contract and the contract defined by Hyperf, so that most components or classes in the framework are replaceable.
Based on the above characteristics, Hyperf will have rich possibilities, such as implementing Web services, gateway services, distributed middleware, microservice architecture, game servers, Internet of Things (IOT), etc.
Operating environment:
Linux,OSXorCygwin,WSL
PHP7.2+
Swoole4.4+