This week, we mainly fixed some component bugs and continued to improve the stability of hyperf, which was released in2.0.4It is recommended that users update this version.
#2144Database query events
#2162Hot update component add
SessionNew configuration of components
#2174Model builder add
ModelRewriteTimestampsVisitor, which is used according to the database field
updated_at, overriding model fields
#2175Model builder add
ModelRewriteSoftDeletesVisitor, which is used according to the database field
deleted_at, add or remove
#2176Model builder add
ModelRewriteKeyInfoVisitor, which is used to rewrite the model fields according to the database primary key
- #2149Fix the bug that cannot be updated normally from Nacos while the custom process is running.
#2159Repair and use
gen:migrationBecause the file already exists
SCANA more friendly exception is thrown when no directory exists.
HttpWhen the interface is accessed, it is not recorded
WebSocketClose the log for the connection.
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 other very convenient functions to meet the rich technical and business scenarios, out of the box.
The original intention of the framework
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
1453A total of
4473Hyperf is a project that has experienced severe production environment test. At present, many large Internet enterprises have deployed hyperf to their own production environment and run stably.