This week, we mainly added some features, fixed bugs of some components, and continued to improve the stability of hyperf, which was released on2.0.18Edition.
It is recommended that you update this version with the following command.
composer update "hyperf/*" -o
- Please remove
hyperf/utilsConflict, so it will lead to
hyperf/utilsUnable to update.
- #2752For annotation
optionsParameter, used to set routing metadata.
WebSocketMemory leak caused by handshake failure.
- #2777Fix lower version
$authI won’t support it
null, leading to error reporting.
- #2779Repair because there is no setting
translationThe configuration file causes the service to fail to start.
ConcurrentClass is created by the method
Hyperf\Utils\Coroutine::create()Replace the original
$waitTimeout, used to safely stop the service in the collaborative process style service.
Hyperf is based on
Swoole 4.5+The high-performance and flexible PHP collaboration framework, built-in collaboration server and a large number of commonly used components, with better performance than the traditional one based on
PHP-FPMThe framework has been improved qualitatively, providing ultra-high performance while maintaining extremely flexible scalability. Standard components are based onPSR standardImplementation, based on powerful dependency injection design, ensures that most components or classes are
In addition to the common collaborative version of the framework component library
Redis clientIn addition, we have prepared the collaborative program version for you
Websocket server and client、
JSON RPC server and client、
Grpc server and client、
Opentracing (Zipkin, Jaeger) client、
Guzzle HTTP client、
Consul, Nacos Service Center、
Configuration centers of Apollo, etcd, zookeeper, Nacos and Alibaba cloud ACM、
Current limiter based on token bucket algorithm、
Universal connection pool、
Swagger document generation、
Blade, Smarty, twig, plates, and thinktemplate view engines、
Snowflake global ID generator、
Prometheus service monitoringAnd other components, saving the trouble of implementing the corresponding collaborative process version.
Hyperf also provides
Dependency injection container based on psr-11、
AOP aspect oriented programming、
Middleware based on psr-15、
Event manager based on psr-14、
Redis / rabbitmq message queue、
Automatic model caching、
Psr-16 based cache、
Crontab second timed task、
Validation form validationAnd other very convenient functions to meet rich technical and business scenarios, out of the box.
Although the framework developed based on PHP language is in an era of flowers competing, we still can’t see a perfect framework with elegant design and ultra-high performance, nor a framework that really paves the way for PHP micro services. This is the original intention of hyperf and its team members. We will continue to invest and make efforts to this end, You are also welcome to join us in open source construction.
Hyperspeed + Flexibility = Hyperf, from the name, we will
Ultra high speedand
flexibilityAs a gene for hyperf.
- For ultra-high speed, we are based on the swoole coprocess and make a lot of optimization in the framework design to ensure the output of ultra-high performance.
- For flexibility, we are based on hyperf’s powerful dependency injection components, which are based onPSR standardThe contract and the contract implementation defined by hyperf make most of the components or classes in the framework replaceable.
Based on the above characteristics, hyperf will have rich possibilities, such as realizing single web services, API services, gateway services, distributed middleware, micro service architecture, game server, Internet of things (IOT), etc.
We have invested a lot of time in the construction of documents to provide high-quality document experience to solve various problems caused by missing documents. A large number of examples are also provided in the documents, which are also friendly to novices.
Hyperf official development documents
We have conducted a lot of unit tests for components to ensure the correctness of logic, which currently exists
1561Single measurement in total
4856Hyperf is a project that has experienced the severe test of production environment. At present, many large Internet enterprises have deployed hyperf to their own production environment and run stably.
GithubPoint star to support us
Gitee code cloudPoint star to support us
Hyperf official website
Hyperf communication group (full): 862099724
Hyperf communication group 2: 811414891
Nail group (full): 34538367
Nail group II: 34488757
This work adoptsCC agreement, reprint must indicate the author and the link to this article