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

v1.0.0(2mo ago)0358↓57.1%PHP

Since May 20Pushed 2mo 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 1w ago

READMEChangelog (4)Dependencies (12)Versions (5)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

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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 ~129 days

Total

4

Last Release

67d ago

Major Versions

v0.1.3 → v1.0.02026-06-12

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

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M674](/packages/shopware-core)[bref/symfony-bridge

Makes Symfony work on AWS Lambda with Bref

502.0M12](/packages/bref-symfony-bridge)[pimcore/skeleton

127202.6k](/packages/pimcore-skeleton)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29736.0k](/packages/sulu-skeleton)

PHPackages © 2026

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