PHPackages                             sebk/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. [Framework](/categories/framework)
4. /
5. sebk/swoole-bundle

ActiveLibrary[Framework](/categories/framework)

sebk/swoole-bundle
==================

Swoole Symfony Bundle

022PHP

Since Aug 30Pushed 3y agoCompare

[ Source](https://github.com/sebk69/swoole-bundle)[ Packagist](https://packagist.org/packages/sebk/swoole-bundle)[ RSS](/packages/sebk-swoole-bundle/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#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.

---

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/45cdb3e169cfc71f586543af872d5a48416b21c4ebb43060bcb8c96eebf3ff5d?d=identicon)[sebk69](/maintainers/sebk69)

---

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)")[![thomasbeaujean](https://avatars.githubusercontent.com/u/5817919?v=4)](https://github.com/thomasbeaujean "thomasbeaujean (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)")[![sebk69](https://avatars.githubusercontent.com/u/6600508?v=4)](https://github.com/sebk69 "sebk69 (1 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)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M191](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M593](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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