This week, we added some new features and fixed bugs of some components, and continued to improve the stability of hyperf. We released the2.0.13It is recommended that you use the following command to update this version.
composer update "hyperf/*" -o
- #2445When using the exception catcher
JSONWhen formatting the data, automatically add an exception
- #2580newly added
- #2559Repair and use
socketio-serverBecause of carrying
queryInformation that causes an event to fail to be triggered.
- #2565Fixed the proxy class was used without a parent class due to the existence of an anonymous class
parent::classAnd the problem of reporting errors.
- #2578Fix the event when the custom process is thrown incorrectly
AfterProcessHandleProblems that cannot be triggered.
- #2582Repair and use
Redis::multiAnd in the
deferOthers are used in
RedisAfter the command, the
RedisAn error is reported when it is used by two coroutines at the same time.
- #2589When using the coprocess style service,
AMQPThe problem that consumers can’t start normally.
- #2590When using the coprocess style service,
CrontabThe problem of not working properly.
- #2561Optimization shutdown
AMQPError message when connection failed.
- #2584When the service is shut down, it is not deleted
NacosThe corresponding service in.
Hyperf is based on
Swoole 4.5+The implementation of the high-performance, high flexibility PHP coprocessing framework, built-in coroutine server and a large number of commonly used components, performance than the traditional based on
PHP-FPMThe framework has qualitative improvement, provides ultra-high performance, but also maintains extremely flexible scalability, standard components are based onPSR standardImplementation, based on powerful dependency injection design, ensures that most components or classes are
Framework component library in addition to the common coprocessor version
Redis client, we also have a 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 alicloud ACM、
Fault 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 monitoringIt can save the trouble of implementing the corresponding version of the coroutine.
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、
Cache based on psr-16、
Crontab second level timing task、
Validation form validationAnd so on very convenient function, meet the rich technical scene and business scene, open the box use.
Although the framework based on PHP language is in the era of a hundred flowers contending, we still can’t see a perfect framework for the coexistence of elegant design and ultra-high performance, nor a framework that paves the way for PHP microservices. This is hyperf And the original intention of our team members, we will continue to invest and make efforts to this end. You are also welcome to join us in the open source construction.
Hyperspeed + Flexibility = HyperfFrom the name, we will
Ultra high speedand
flexibilityAs a gene for hyperf.
- For ultra-high speed, we base on the swote coprocessor and do 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 component, which is based onPSR standardThe contract is implemented by the contract defined by hyperf, and most of the components or classes in the framework are replaceable.
Based on the above characteristics, hyperf will have rich possibilities, such as implementing single web services, API services, gateway services, distributed middleware, microservice architecture, game server, Internet of things (IOT).
We have invested a lot of time in the construction of documents to provide a high-quality document experience, to solve various problems caused by the lack of documents. The documents also provide a lot of examples, which are equally friendly to novices.
Official development document of hyperf
We have done a lot of unit testing for the components to ensure that the logic is correct, which currently exists
1537A total of
4779According to the assertion conditions, hyperf is a project which has experienced severe production environment test. At present, many large Internet enterprises have deployed hyperf to their own production environment and run stably.
This work adoptsCC agreementThe author and the link to this article must be indicated in the reprint