Download the PHP package swoole-bundle/swoole-bundle without Composer
On this page you can find all versions of the php package swoole-bundle/swoole-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swoole-bundle/swoole-bundle
More information about swoole-bundle/swoole-bundle
Files in swoole-bundle/swoole-bundle
Package swoole-bundle
Short Description Open/Swoole Symfony Bundle
License MIT
Homepage https://github.com/symfony-swoole/swoole-bundle
Informations about the package swoole-bundle
Swoole Bundle
Symfony integration with Open Swoole to speed up your applications.
Sponsored by: | |
---|---|
Blackfire.io | |
Travis CI |
Build Matrix
CI Job | Branch master |
Branch develop |
---|---|---|
Circle | ||
CodeCov | ||
Travis |
Table of Contents
- Swoole Bundle
- Build Matrix
- Table of Contents
- Quick start guide
- Features
- Requirements
- Current version
- Future versions
- Open Swoole
- Version check
- Installation
Quick start guide
-
Make sure you have installed proper Open Swoole PHP Extension and pass other requirements.
-
(optional) Create a new symfony project
-
Install bundle in your Symfony application
If using OpenSwoole, you need to also install the core package:
-
Edit
config/bundles.php
-
Run Swoole HTTP Server
-
Enter http://localhost:9501
- You can now configure bundle according to your needs
Features
-
Built-in API Server
Swoole Bundle API Server allows managing Swoole HTTP Server in real-time.
- Reload worker processes
- Shutdown server
- Access metrics and settings
-
Improved static files serving
Swoole HTTP Server provides a default static files handler, but it lacks supporting many
Content-Types
. To overcome this issue, there is a configurable Advanced Static Files Server. Static files serving remains enabled by default in the development environment. Static files directory defaults to%kernel.project_dir%/public
. To configure your custom mime types check configuration reference (keyswoole.http_server.static.mime_types
). -
Symfony Messenger integration
Available since version:
0.6
Swoole Server Task Transport has been integrated into this bundle to allow easy execution of asynchronous actions. Documentation of this feature is available here.
-
Hot Module Reload (HMR) for development ALPHA
Since Swoole HTTP Server runs in Event Loop and does not flush memory between requests, to keep DX equal with normal servers, this bundle uses code replacement technique, using
inotify
PHP Extension to allow continuous development. It is enabled by default (when the extension is found) and requires no additional configuration. You can turn it off in bundle configuration._Remarks: This feature currently works only on a Linux host machine. It probably won't work with Docker, and it is possible that it works only with configuration:
swoole.http_server.running_mode: process
(default)._ - Access logs, (disabled by default) logs are configurable is a same way as apache mod log. Documentation of this feature is available here.
Requirements
Current version
- PHP version
>= 8.1 && <= 8.3
- Open Swoole PHP Extension
^v22.1.2
- Swoole PHP Extension
^5.1.1
- Symfony
^5.4.22 || ^6.4
Future versions
- Symfony
^7.0
Additional requirements to enable specific features:
- Inotify PHP Extension
^2.0.0
to use Hot Module Reload (HMR)- When using PHP 8, inotify version
^3.0.0
is required
- When using PHP 8, inotify version
Swoole
The bundle requires one of those extensions:
- Swoole PHP Extension version
5.1.1
or higher. Active bug fixes are provided only for the latest version. - Open Swoole PHP Extension version
22.0.0
or higher. Active bug fixes are provided only for the latest version.
Version check
To check your installed version you can run the following command:
Installation
Swoole
Official GitHub repository swoole/swoole-src contains comprehensive installation guide. The recommended approach is to install it from source.
OpenSwoole
Official GitHub repository openswoole/ext-openswoole contains comprehensive installation guide. The recommended approach is to install it from source.
All versions of swoole-bundle with dependencies
ext-json Version *
beberlei/assert Version ^3.3
laminas/laminas-code Version ^4.7||^4.8
monolog/monolog Version ^2.3.3|^3.0
symfony/cache Version ^5.4.30|^6.4|^7.0
symfony/config Version ^5.4.26|^6.4|^7.0
symfony/console Version ^5.4.28|^6.4|^7.0
symfony/dependency-injection Version ^5.4.29|^6.4|^7.0
symfony/filesystem Version ^5.4.25|^6.4|^7.0
symfony/http-foundation Version ^5.4.30|^6.4|^7.0
symfony/http-kernel Version ^5.4.30|^6.4|^7.0
symfony/process Version ^5.4.28|^6.4|^7.0
symfony/proxy-manager-bridge Version ^5.4.21|^6.4|^7.0
upscale/ext-openswoole Version ^v22.1.2
upscale/ext-swoole Version ^5.1.0