PHPackages                             cydrickn/swoole-runtime - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cydrickn/swoole-runtime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cydrickn/swoole-runtime
=======================

Swoole / Openswoole Runtime

v0.1.3(10mo ago)0288↓50%PHP

Since May 20Pushed 10mo ago1 watchersCompare

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

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

Swoole or Openswoole Runtime with Hotrelaod
===========================================

[](#swoole-or-openswoole-runtime-with-hotrelaod)

A Symfony Runtime package that provides OpenSwoole integration for high-performance PHP applications. This package extends Symfony's Runtime component to support OpenSwoole server and hot reloading, enabling you to run your Symfony applications with improved performance and concurrent request handling.

Features
--------

[](#features)

- OpenSwoole server integration for Symfony applications
- Support for both HTTP Kernel and callable applications
- Hot reload capability for development (optional)
- Configurable server settings
- Environment variable support for configuration

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

[](#requirements)

- PHP 8.1 or higher
- OpenSwoole extension
- Symfony 7.2 or higher

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require cydrickn/runtime
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

To use the runtime in your Symfony application, create a `runtime.php` file in your project root:

```
APP_RUNTIME=\\Cydrickn\\Runtime\\Runtime php ./public/index.php
```

### Configuration Options

[](#configuration-options)

The runtime supports various configuration options that can be set either in the options array or through environment variables:

OptionEnvironment VariableDefaultDescriptionhostSWOOLE\_HOST127.0.0.1Server host addressportSWOOLE\_PORT8000Server portmodeSWOOLE\_MODE2Server mode (SWOOLE\_PROCESS)sock\_typeSWOOLE\_SOCK\_TYPE1Socket type (SWOOLE\_SOCK\_TCP)hot\_reloadSWOOLE\_HOT\_RELOAD0Enable hot reload (1) or disable (0)base\_pathSWOOLE\_BASE\_PATH**DIR**Base path for hot reload### Hot Reload

[](#hot-reload)

For development, you can enable hot reload functionality by installing the optional `cydrickn/php-watcher` package:

```
composer require --dev cydrickn/php-watcher
```

in your `.env`

```
SWOOLE_HOT_RELOAD=1
```

### Using .env File

[](#using-env-file)

You can also add the runtime configuration to your `.env` file:

```
APP_RUNTIME=\\Cydrickn\\Runtime\\Runtime
```

Then run your application normally:

```
php ./public/index.php
```

Development
-----------

[](#development)

### Contributing

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

### License

[](#license)

This package is open-sourced software licensed under the [MIT License](LICENSE).

Author
------

[](#author)

- Cydrick Nonog ()

Credits
-------

[](#credits)

This package is built on top of:

- [Symfony Runtime](https://github.com/symfony/runtime)
- [OpenSwoole](https://github.com/openswoole/core)
- [Runtime Swoole](https://github.com/runtime/runtime-swoole)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance55

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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.

###  Release Activity

Cadence

Every ~30 days

Total

3

Last Release

303d ago

### Community

Maintainers

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

---

Top Contributors

[![cydrickn](https://avatars.githubusercontent.com/u/6417652?v=4)](https://github.com/cydrickn "cydrickn (5 commits)")

### Embed Badge

![Health badge](/badges/cydrickn-swoole-runtime/health.svg)

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

###  Alternatives

[bref/symfony-bridge

Makes Symfony work on AWS Lambda with Bref

491.7M5](/packages/bref-symfony-bridge)[runtime/swoole

Swoole runtime

56179.7k2](/packages/runtime-swoole)[mapbender/mapbender

Mapbender library

10117.4k5](/packages/mapbender-mapbender)[runtime/bref

Bref runtime

19107.4k](/packages/runtime-bref)[runtime/react

ReactPHP runtime

185.3k1](/packages/runtime-react)

PHPackages © 2026

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