Yii2-Swoole v0.1.0
π 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.