PHPackages                             swoolefony/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. swoolefony/swoole-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

swoolefony/swoole-bundle
========================

A Swoole bundle for Symfony.

2351[1 PRs](https://github.com/Swoolefony/swoole-bundle/pulls)PHP

Since Aug 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Swoolefony/swoole-bundle)[ Packagist](https://packagist.org/packages/swoolefony/swoole-bundle)[ RSS](/packages/swoolefony-swoole-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Swoolefony
==========

[](#swoolefony)

Swoolefony is a Swoole bundle for Symfony. It provides integration via a runtime class and management via commands.

Installation
============

[](#installation)

Install it using composer:

```
composer require swoolefony/swoole-bundle
```

Runtime Configuration
=====================

[](#runtime-configuration)

Add the runtime class to your `composer.json` in the `extra` section:

```
"extra": {
    "runtime": {
        "class": "Swoolefony\\SwooleBundle\\Runtime\\SwooleRuntime"
    }
}
```

With the runtime in place, the default `public/index.php` would be the entry point for start the application. Once it is run, the Swoole server is started based on the provided configuration.

Swoole Configuration
====================

[](#swoole-configuration)

The Swoole server mode, IP, and port can be controlled via environment variables:

Enviornment VariableDescriptionDefault Value`SWOOLEFONY_MODE`The server mode to run Swoole in (e.g. `http`, `websocket`)`http``SWOOLEFONY_IP`The IP address to bind the Swoole server to.`0.0.0.0``SWOOLEFONY_PORT`The port to for the Swoole server to listen on.`80``SWOOLEFONY_SSL_CERT_FILE`The path to the SSL cert file to use.Not set.`SWOOLEFONY_SSL_KEY_FILE`The path to the SSL key file to use.Not set.`SWOOLEFONY_SSL_ALLOW_SELFSIGNED`Whether or not to allow self-signed certificates (`0` or `1`).`0``SWOOLEFONY_SSL_PROTOCOLS`The SSL / TLS protcols to allow in a comma separated list: `tls1.1`, `tls1.2`, `tls1.3``tls1.3,tls1.2``SWOOLEFONY_DAEMONIZE`Whether the server should run as a daemon (`0` or `1`). If so, the entry point returns immediately.`0`The runtime class will look for those environment variables and use them if they exist. Otherwise it will fallback to the default values that are listed.

Request Attributes
==================

[](#request-attributes)

The following attributes are available on the request class (`Request->attributes`) when it is processed by Symfony:

Attribute NameDescriptionValue Type`swoolefony.id`The Swoole specific request ID (fd).`int``swoolefony.mode`The server mode Swoole is running in. Either `http` or `websocket``string`Container Services
==================

[](#container-services)

The following container services are available:

Service NameDescriptionClass`swoolefony.server`The Swoole server instance running for this request.`\Swoolefony\SwooleBundle\Server\ServerInterface`

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/388229?v=4)[Chad Sikorra](/maintainers/ChadSikorra)[@ChadSikorra](https://github.com/ChadSikorra)

---

Top Contributors

[![ChadSikorra](https://avatars.githubusercontent.com/u/388229?v=4)](https://github.com/ChadSikorra "ChadSikorra (47 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/packages/laravel-telescope)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M529](/packages/laravel-passport)[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.7M255](/packages/laravel-dusk)[laravel/prompts

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

708181.8M591](/packages/laravel-prompts)

PHPackages © 2026

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