PHPackages                             php-earth/swoole-engine - 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. php-earth/swoole-engine

AbandonedArchivedLibrary[Framework](/categories/framework)

php-earth/swoole-engine
=======================

Event-driven engine for running PHP with Swoole extension.

v0.0.5(8y ago)377625MITPHPPHP &gt;=7.1

Since Jun 6Pushed 7y ago9 watchersCompare

[ Source](https://github.com/phpearth/swoole-engine)[ Packagist](https://packagist.org/packages/php-earth/swoole-engine)[ RSS](/packages/php-earth-swoole-engine/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Swoole Engine
=============

[](#swoole-engine)

[![Build Status](https://camo.githubusercontent.com/1cee6982808dadb632c511fdcac9b4b80cb355a185e437d6f7f7f07aba11552f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d65617274682f73776f6f6c652d656e67696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/php-earth/swoole-engine)

Event-driven PHP engine for running PHP Applications with [Swoole extension](http://swoole.com).

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

[](#installation)

 Before using this library, you'll need Swoole extensionInstalling using PECL:

```
pecl install swoole
```

Add `extension=swoole` (or `extension=swoole.so` for PHP &lt; 7.2) to your `php.ini`file for PHP CLI sapi:

```
echo "extension=swoole" | sudo tee --append `php -r 'echo php_ini_loaded_file();'`
```

Check if Swoole extension is loaded

```
php --ri swoole
```

You should see something like

```
swoole

swoole support => enabled
Version => 2.0.10
Author => tianfeng.han[email: mikan.tenny@gmail.com]
epoll => enabled
eventfd => enabled
timerfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
async http/websocket client => enabled
Linux Native AIO => enabled
pcre => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled

Directive => Local Value => Master Value
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_namespace => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
```

Then proceed and install Swoole Engine library in your project with Composer:

```
composer require php-earth/swoole-engine
```

Usage
-----

[](#usage)

Currently supported frameworks:

- Symfony:

```
vendor/bin/swoole [--env=dev|prod|...] [--host=IP] [--no-debug]
```

Documentation
-------------

[](#documentation)

For more information, read the [documentation](docs):

- [Introduction](docs/intro.md)
- [Sessions](docs/sessions.md)

License
-------

[](#license)

[Contributions](docs/CONTRIBUTING.md) are most welcome. This repository is released under the [MIT license](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.1% 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 ~45 days

Total

5

Last Release

3082d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1614009?v=4)[Peter Kokot](/maintainers/petk)[@petk](https://github.com/petk)

---

Top Contributors

[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (35 commits)")[![smalot](https://avatars.githubusercontent.com/u/1424035?v=4)](https://github.com/smalot "smalot (2 commits)")[![nikos-glikis](https://avatars.githubusercontent.com/u/8829019?v=4)](https://github.com/nikos-glikis "nikos-glikis (1 commits)")

---

Tags

phpswoolesymfony

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-earth-swoole-engine/health.svg)

```
[![Health](https://phpackages.com/badges/php-earth-swoole-engine/health.svg)](https://phpackages.com/packages/php-earth-swoole-engine)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)

PHPackages © 2026

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