Releases: dacheng-php/yii2-swoole
Releases · dacheng-php/yii2-swoole
Yii2-Swoole v0.2
v0.2
- Coroutine HTTP client added (Swoole-powered, parallel batchSend, falls back outside coroutines); docs and API example included.
- Coroutine Redis cache backend with pooling and replica support; cache demos/benchmarks added to examples.
- Connection pools now register shutdown handlers to clean DB/Redis pools and locks on fatal/abnormal exit.
- Static file server hardened (path normalization, traversal/null-byte rejection, nosniff header, safer docroot check) and stops manually setting Content-Length to avoid compression warnings.
- Response format resets to the configured default between requests; logging routed through Yii for consistency.
- Docs/examples refreshed and yiisoft/yii2-httpclient added for the new HTTP client.
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.