Download the PHP package tourze/workerman-runtime-context-bundle without Composer
On this page you can find all versions of the php package tourze/workerman-runtime-context-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/workerman-runtime-context-bundle
More information about tourze/workerman-runtime-context-bundle
Files in tourze/workerman-runtime-context-bundle
Package workerman-runtime-context-bundle
Short Description Workerman Runtime Context bundle
License MIT
Informations about the package workerman-runtime-context-bundle
Workerman Runtime Context Bundle
中文
A Symfony bundle that enables efficient coroutine context management for Workerman v5 event loop, providing context isolation and coroutine-friendly service integration with minimal code changes.
Features
- Seamless integration of Workerman coroutine context into Symfony applications
- Automatic context isolation for each coroutine (Fiber, Swoole, Swow)
- Support for context-aware connection pools and resource management
- Compatible with Symfony 6.4+
- Minimal or zero code modification needed in your existing Symfony app
Installation
- PHP >= 8.1
- Symfony 6.4 or higher
- Workerman >= 5.1
Install via Composer:
Quick Start
-
Enable the bundle in your Symfony application (usually auto-registered via Flex):
-
Use context-aware services in your code. For example, to defer a callback in coroutine:
- See examples/ for advanced coroutine and context isolation usage, including Fiber, connection pool, and concurrency model tests.
Documentation
- Coroutine Context Isolation: How context is isolated between coroutines
- Connection Pool Usage: Resource sharing and reuse
- Concurrency Model Comparison: Serial, Parallel, Barrier, Channel models
Advanced Configuration
This bundle automatically decorates the default ContextServiceInterface
to provide Workerman coroutine support. No manual configuration is required for most use cases.
Contributing
- Please submit issues and pull requests via GitHub
- Follow PSR coding standards and Symfony best practices
- Run tests via PHPUnit before submitting PRs
License
MIT License. See LICENSE for details.
Authors
tourze https://github.com/tourze
Changelog
See Releases for version history and upgrade notes.
All versions of workerman-runtime-context-bundle with dependencies
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/http-kernel Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/symfony-runtime-context-bundle Version 0.0.*
workerman/workerman Version ^5.1
workerman/coroutine Version ^1.1