Skip to content

Yii2-Swoole v0.1.0

Choose a tag to compare

@dacheng-gao dacheng-gao released this 24 Oct 14:53
· 8 commits to master since this release

πŸŽ‰ 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.