English | 中文
Hyperf is an extremely performant and flexible PHP CLI framework, powered by a state-of-the-art coroutine server and a large number of battle-tested components. Aside from decisively beating PHP-FPM frameworks in benchmarks, Hyperf is unique in its focus on flexibility and composition. Hyperf ships with an AOP-enabling (aspect-oriented programming) dependency injector to ensure components and classes are pluggable and meta-programmable. All of Hyperf's core components strictly follow PSR standards and can be used in other frameworks.
Hyperf's architecture is built using a combination of
AOP. In addition to providing
Redis and other common coroutine clients,
Hyperf also provides coroutine compatible versions of
WebSocket server / client,
JSON RPC server / client,
gRPC server / client,
Zipkin/Jaeger (OpenTracing) client,
Guzzle HTTP client,
Apollo configuration center,
ETCD configuration center,
Token bucket algorithm-based limiter,
Universal connection pool,
Simply Redis MQ,
Seconds level crontab,
Custom Processes, etc. Therefore, developers can entirely avoid implementing coroutine compatible versions of these libraries.
Rest assured, Hyperf is still a PHP framework. Hyperf provides all the packages you expect:
Coroutine-optimized Eloquent ORM (and Model Cache!),
View engine (Blade/Smarty/Twig/Plates/ThinkTemplate) and more.
Although there are many new PHP frameworks, we still haven't found a framework that matches an elegant design with ultra-high performance, nor have we found a framework that paves the way for PHP microservices. With this vision in mind, we will continue to invest in the future of this framework, and you are welcome to join us in contributing to the open-source development of Hyperf.
Hyperspeed + Flexibility = Hyperf. The equation hidden in our name exhibits Hyperf's founding ambition.
Swow coroutines, Hyperf is capable of handling massive amounts of traffic. The Hyperf team made many optimizations to the framework to eliminate every bottleneck between the end-user and our blazing engine.
Flexibility: We believe our Dependency Injection component is best in class. With the help of
Hyperf DI, components and classes are all pluggable and meta-programmable. Inversely, all Hyperf components are meant to be shared with the world. Our commitment to PSR standards means that you can use Hyperf components in any compatible framework.
Via these traits, Hyperf has discovered the untapped potential in many fields: implementing Web servers, gateway servers, distributed middleware software, microservices architecture, game servers, and Internet-of-Things (IoT).
Alongside our well-maintained, multilingual documentation, a large number of unit tests for each component ensure logical correctness. Before
Hyperf was released to the public (2019-06-20), it had been privately used by some medium and large Internet companies for multiple services, which have been running without incident for years in harsh production environments.
If you discover a security vulnerability within Hyperf, please send an e-mail to the Hyperf Team via firstname.lastname@example.org. All security vulnerabilities will be promptly addressed.
This project exists thanks to all the people who contribute. [Contribute].
Become a financial contributor and help us sustain our community. [Contribute]
Support this project with your organization or company. Your logo will show up here with a link to your website. [Contribute]
wrk -c 1024 -t 8 http://127.0.0.1:9501/
Running 10s test @ http://127.0.0.1:9501/ 8 threads and 1024 connections Thread Stats Avg Stdev Max +/- Stdevs Latency 10.08ms 6.82ms 56.66ms 70.19% Req/Sec 13.17k 5.94k 33.06k 84.12% 1049478 requests in 10.10s, 190.16MB read Requests/sec: 103921.49 Transfer/sec: 18.83MB
The Hyperf framework is open-source software licensed under the MIT license.
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容，可点击提交进行申诉，我们将尽快为您处理。
：Code submit frequency
：React/respond to issue & PR etc.
：Well-balanced team members and collaboration
：Recent popularity of project
：Star counts, download counts etc.