imi coroutine development framework update log:
v2.1.0
2022 is here, imi2.0 has gone through a long development process, and has continued to iterate for 4 months after its official release. It is now relatively stable.
imi2.0 and 1.3 are LTS versions. In order to maintain stability, we will continue to provide problem fixes and security fixes, and will no longer provide feature updates. There is no timetable for terminating maintenance.
imiv2.1.0 brings two new features: macro definition and asynchronous log. And the minimum supported Swoole version is upgraded to v4.8, and the PHP version requirement remains unchanged, still PHP>=7.4.
As the name suggests, asynchronous logging no longer needs to be slowed down by logging IO to respond to the interface, everything is asynchronous.
Just add: 'async'=>true to @app.logger to enable it.
This feature is only valid for Swoole.
Macro definition supports the use of macro definition in the imi framework.
Supports the use of macros similar to those in C/C++ in PHP code for code pre-compilation.
It can be easily compatible with PHP codes running in different versions and environments.
In some scenarios, predefined constants can be used to improve performance and reduce runtime judgments.
This component is based on the Yurunsoft/php-macro component, which is developed by Yurun.
imi is a PHP coroutine development framework based on Swoole. It supports the service development of mainstream protocols such as Http, Http2, WebSocket, TCP, UDP, MQTT, etc. It is especially suitable for Internet microservices, instant messaging IM, Internet of Things and other scenarios! .
Core components:
HttpApi, WebSocket, TCP, UDP, MQTT server
MySQL connection pool (master-slave + load balancing)
Redis connection pool (master-slave + load balancing)
Super easy-to-use ORM (Db, Redis, Tree)
Millisecond hot update
AOP
Bean container cache (Cache)
Configuration reading and writing (Config)
Enumeration
Event
Facade
Validate
Lock
Log
Asynchronous tasks (Task)
Environmental requirements:
Redis、MySQL