PHPackages                             bencagri/openswoole-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. bencagri/openswoole-bundle

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

bencagri/openswoole-bundle
==========================

Swoole Symfony Bundle

v0.10.0(4y ago)0140MITPHPPHP ^7.4|^8.0

Since Dec 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bencagri/openswoole-bundle)[ Packagist](https://packagist.org/packages/bencagri/openswoole-bundle)[ Docs](https://github.com/k911/swoole-bundle)[ RSS](/packages/bencagri-openswoole-bundle/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (1)Dependencies (32)Versions (2)Used By (0)

Open Swoole Bundle
==================

[](#open-swoole-bundle)

[![Maintainability](https://camo.githubusercontent.com/19dc0eaded76e822ec9b6d648b931d947408caa3e1025b45611e9a52dd8d689c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31643733613231343632326262613736393137312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/k911/swoole-bundle/maintainability)[![Test Coverage](https://camo.githubusercontent.com/f6b6abc39a2b8ccc9e1781e9fc204fc49fbd8577af21f648f267f54b9db7eef0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31643733613231343632326262613736393137312f746573745f636f766572616765)](https://codeclimate.com/github/k911/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.

This repository is fork of [K911 Swoole Bundle](https://github.com/k911/swoole-bundle)

---

Build Matrix
------------

[](#build-matrix)

CI JobBranch [`master`](https://github.com/k911/swoole-bundle/tree/develop)Branch [`develop`](https://github.com/k911/swoole-bundle/tree/master)Circle[![CircleCI](https://camo.githubusercontent.com/8b1476115264dcdd9fd570349f5dac1d2d71daac3fd35eb6a14834daed7a2a3d/68747470733a2f2f636972636c6563692e636f6d2f67682f6b3931312f73776f6f6c652d62756e646c652f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/k911/swoole-bundle/tree/master)[![CircleCI](https://camo.githubusercontent.com/96b7e0307d06ba528825f154a4fb30a3a03b91ca8fed5fca99911f48b768eff2/68747470733a2f2f636972636c6563692e636f6d2f67682f6b3931312f73776f6f6c652d62756e646c652f747265652f646576656c6f702e7376673f7374796c653d737667)](https://circleci.com/gh/k911/swoole-bundle/tree/develop)CodeCov[![codecov](https://camo.githubusercontent.com/812fef925c81c9400efbf1574e72d620b11d7ce03291586a99e267d1a32e545a/68747470733a2f2f636f6465636f762e696f2f67682f6b3931312f73776f6f6c652d62756e646c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/k911/swoole-bundle)[![codecov](https://camo.githubusercontent.com/c896ac9681b6f58711bab67aa2ef9a27298ae910a086061dd0582a41127a2a01/68747470733a2f2f636f6465636f762e696f2f67682f6b3931312f73776f6f6c652d62756e646c652f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/k911/swoole-bundle)Travis[![Build Status](https://camo.githubusercontent.com/6782173d3ec7f5b1e38172161e476c40ee928c33bcc9c3a32fd8d6055212e54c/68747470733a2f2f7472617669732d63692e6f72672f6b3931312f73776f6f6c652d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/k911/swoole-bundle)[![Build Status](https://camo.githubusercontent.com/b8f3c4ad2490a131ab2cd83e0d5ba5c896bfc3a532fa18802f435a06b078216a/68747470733a2f2f7472617669732d63692e6f72672f6b3931312f73776f6f6c652d62756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/k911/swoole-bundle)Table of Contents
-----------------

[](#table-of-contents)

- [Swoole Bundle](#swoole-bundle)
    - [Build Matrix](#build-matrix)
    - [Table of Contents](#table-of-contents)
    - [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 k911/swoole-bundle
    ```
4. Edit `config/bundles.php`

    ```
    return [
        // ...other bundles
        K911\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 `>= 7.4`
- Swoole PHP Extension `>= 4.5.10`
- Symfony `>= 4.4.0`

### Future versions

[](#future-versions)

- PHP version `>= 8.0`
- Swoole PHP Extension `>= 4.6`
- Symfony `>= 5.0`

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;"

# 4.4.7
```

#### 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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.9% 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

Unknown

Total

1

Last Release

1599d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e95e42d9ecf14ecdcf3c4f4c6d6589547f6b8ceae399a1869413d30e21d0c56?d=identicon)[bencagri](/maintainers/bencagri)

---

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)")[![bencagri](https://avatars.githubusercontent.com/u/823521?v=4)](https://github.com/bencagri "bencagri (3 commits)")[![luca-nardelli](https://avatars.githubusercontent.com/u/6215162?v=4)](https://github.com/luca-nardelli "luca-nardelli (2 commits)")[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (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/bencagri-openswoole-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bencagri-openswoole-bundle/health.svg)](https://phpackages.com/packages/bencagri-openswoole-bundle)
```

###  Alternatives

[swoole-bundle/swoole-bundle

Open/Swoole Symfony Bundle

6650.4k](/packages/swoole-bundle-swoole-bundle)[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.6M232](/packages/nelmio-api-doc-bundle)[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)

PHPackages © 2026

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