Yii2-Swoole v0.1.0 - Initial Release: Coroutine HTTP Server & Connection Pools [ 技术分享 ]
Initial Release
First stable release of Yii2-Swoole extension, bringing high-performance coroutine capabilities to Yii2 applications.
Core Features
HTTP Server
- Single-process coroutine HTTP server with minimal overhead
- Built-in static file serving (CSS, JS, images, fonts)
- Graceful shutdown with signal handling
- Command-line interface for server management
Connection Pooling
- MySQL connection pool with automatic management
- Redis connection pool with configurable limits
- Coroutine-safe connection acquisition and release
- Connection reuse for persistent performance
Async Job Queue
- Redis-backed queue implementation
- Concurrent job processing with configurable workers
- Queue management commands (run, listen, info, clear)
- Drop-in replacement for yii2-queue
Logging & Components
- Non-blocking async file logging with channel buffering
- Coroutine-safe Session component with Redis storage
- Coroutine-safe User component
- Seamless integration with existing Yii2 applications
Requirements
- PHP >= 8.1
- Swoole >= 6.0
- Yii2 >= 2.0
Installation
composer require dacheng-php/yii2-swoole
Quick Start
See README.md for complete setup instructions.
共 0 条回复
没有找到数据。
Dacheng 广东深圳
注册时间:2025-10-13
最后登录:4小时前
在线时长:0小时36分
最后登录:4小时前
在线时长:0小时36分
- 粉丝0
- 金钱25
- 威望0
- 积分25