PHPackages                             vasyaxy/symfony-swoole-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. vasyaxy/symfony-swoole-bundle

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vasyaxy/symfony-swoole-bundle
=============================

Swoole Symfony Bundle

v0.3(3y ago)082MITPHPPHP ^8.0

Since Feb 25Pushed 3y agoCompare

[ Source](https://github.com/VasyaXY/symfony-swoole-bundle)[ Packagist](https://packagist.org/packages/vasyaxy/symfony-swoole-bundle)[ Docs](https://github.com/VasyaXY/symfony-swoole-bundle)[ RSS](/packages/vasyaxy-symfony-swoole-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (33)Versions (4)Used By (0)

Swoole Bundle
=============

[](#swoole-bundle)

[![Maintainability](https://camo.githubusercontent.com/19dc0eaded76e822ec9b6d648b931d947408caa3e1025b45611e9a52dd8d689c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31643733613231343632326262613736393137312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/vasyaxy/swoole-bundle/maintainability)[![Test Coverage](https://camo.githubusercontent.com/f6b6abc39a2b8ccc9e1781e9fc204fc49fbd8577af21f648f267f54b9db7eef0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31643733613231343632326262613736393137312f746573745f636f766572616765)](https://codeclimate.com/github/vasyaxy/swoole-bundle/test_coverage)[![Open Source Love](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/ellerbrock/open-source-badges/)[![MIT Licence](https://camo.githubusercontent.com/fabb40ab22588a0746bb0916ed92739171bde7fb31f281c627aa588bcba62cc2/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e7376673f763d313033)](https://opensource.org/licenses/mit-license.php)

Symfony integration with [Swoole](https://www.swoole.co.uk/) to speed up your applications.

---

Table of Contents
-----------------

[](#table-of-contents)

- [Swoole Bundle](#swoole-bundle)
    - [Quick start guide](#quick-start-guide)
    - [Features](#features)
    - [Requirements](#requirements)
        - [Current version](#current-version)
        - [Future versions](#future-versions)
        - [Swoole](#swoole)
            - [Version check](#version-check)
            - [Installation](#installation)

Quick start guide
-----------------

[](#quick-start-guide)

1. Make sure you have installed proper Swoole PHP Extension and pass other [requirements](#requirements).
2. (optional) Create a new symfony project

    ```
    composer create-project symfony/skeleton project

    cd ./project
    ```
3. Install bundle in your Symfony application

    ```
    composer require vasyaxy/symfony-swoole-bundle
    ```
4. Edit `config/bundles.php`

    ```
    return [
        // ...other bundles
        vasyaxy\Swoole\Bridge\Symfony\Bundle\SwooleBundle::class => ['all' => true],
    ];
    ```
5. Run Swoole HTTP Server

    ```
    bin/console swoole:server:run
    ```
6. Enter
7. You can now configure bundle according to your needs

Features
--------

[](#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](docs/configuration-reference.md) (key `swoole.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](docs/swoole-task-symfony-messenger-transport.md).
- 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).*

Requirements
------------

[](#requirements)

### Current version

[](#current-version)

- PHP version `>= 8.2`
- Swoole PHP Extension `>= 5.0.1`
- Symfony `>= 6.2`

Additional requirements to enable specific features:

- [Inotify PHP Extension](https://pecl.php.net/package/inotify) `^2.0.0` to use Hot Module Reload (HMR)
    - When using PHP 8, inotify version `^3.0.0` is required

### Swoole

[](#swoole)

Bundle requires [Swoole PHP Extension](https://github.com/swoole/swoole-src) version `4.5.10` or higher. Active bug fixes are provided only for the latest version.

#### Version check

[](#version-check)

To check your installed version you can run the following command:

```
php -r "echo swoole_version() . \PHP_EOL;"

# 5.0.1
```

#### Installation

[](#installation)

Official GitHub repository [swoole/swoole-src](https://github.com/swoole/swoole-src#%EF%B8%8F-installation) contains comprehensive installation guide. The recommended approach is to install it [from source](https://github.com/swoole/swoole-src#3-install-from-source-recommended).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Total

3

Last Release

1105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e30e7c21a3bb88b7fcbace41fff4f94457f1adfc990e102cbab0aed264691ccf?d=identicon)[VasyaXY](/maintainers/VasyaXY)

---

Top Contributors

[![k911](https://avatars.githubusercontent.com/u/10072889?v=4)](https://github.com/k911 "k911 (257 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (99 commits)")[![supersmile2009](https://avatars.githubusercontent.com/u/25199815?v=4)](https://github.com/supersmile2009 "supersmile2009 (7 commits)")[![swoole-bundle-bot](https://avatars.githubusercontent.com/u/64752855?v=4)](https://github.com/swoole-bundle-bot "swoole-bundle-bot (4 commits)")[![fjogeleit](https://avatars.githubusercontent.com/u/16627596?v=4)](https://github.com/fjogeleit "fjogeleit (4 commits)")[![Rastusik](https://avatars.githubusercontent.com/u/1735097?v=4)](https://github.com/Rastusik "Rastusik (3 commits)")[![VasyaXY](https://avatars.githubusercontent.com/u/68634723?v=4)](https://github.com/VasyaXY "VasyaXY (2 commits)")[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (2 commits)")[![luca-nardelli](https://avatars.githubusercontent.com/u/6215162?v=4)](https://github.com/luca-nardelli "luca-nardelli (2 commits)")[![mab05k](https://avatars.githubusercontent.com/u/11943457?v=4)](https://github.com/mab05k "mab05k (1 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (1 commits)")[![CoderChang65535](https://avatars.githubusercontent.com/u/19420270?v=4)](https://github.com/CoderChang65535 "CoderChang65535 (1 commits)")

---

Tags

httpphpasyncbundleserverswoole

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vasyaxy-symfony-swoole-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/vasyaxy-symfony-swoole-bundle/health.svg)](https://phpackages.com/packages/vasyaxy-symfony-swoole-bundle)
```

###  Alternatives

[swoole-bundle/swoole-bundle

Open/Swoole Symfony Bundle

6650.4k](/packages/swoole-bundle-swoole-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[pixelfederation/swoole-bundle

Swoole Symfony Bundle

3311.4k](/packages/pixelfederation-swoole-bundle)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
