PHPackages                             bulaohe/swoole - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. bulaohe/swoole

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bulaohe/swoole
==============

High performance HTTP server based on Swoole. Speeds up your Laravel and Lumen applications.

6.0.2(4y ago)1104MITPHP

Since Feb 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Bulaohe/swoole)[ Packagist](https://packagist.org/packages/bulaohe/swoole)[ RSS](/packages/bulaohe-swoole/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (22)Used By (0)

swoole
======

[](#swoole)

Integrate Swoole into Laravel and Lumen 5.5,5.7,5.8,6.x

This pacakge is a rewrite of huang-yi/laravel-swoole-http, Thanks to Huang Yi .
================================================================================================

[](#this-pacakge-is-a-rewrite-of-huang-yilaravel-swoole-http-thanks-to-huang-yi-coodeer163com)

Notice
======

[](#notice)

You should reset the instances of Singleton mode Facades Classes in the method register of your self-defined ServiceProvider like below:

1. add clear code in the register function Facade::clearResolvedInstance('your-service-alias-name');
2. add config/http.providers your service provider App\\Providers{YourProvider}::class,

start command
=============

[](#start-command)

php artisan swoole:http --host=0.0.0.0 --port=9807 --pid\_file=/tmp/swoole1.pid start/stop/reload/restart

php artisan swoole:http --host=0.0.0.0 --port=9808 --pid\_file=/tmp/swoole2.pid start/stop/reload/restart

nginx conf
==========

[](#nginx-conf)

server { listen 80; server\_name your\_server\_name; root /var/www/logistics/public; index index.php;

```
location = /index.php {
    # Ensure that there is no such file named "not_exists" in your "public" directory.
    try_files /not_exists @swoole;
}

location / {
    try_files $uri $uri/ @swoole;
}

location @swoole {
    set $suffix "";

    if ($uri = /index.php) {
        set $suffix "/";
    }

    proxy_set_header Host $host;
    proxy_set_header SERVER_PORT $server_port;
    proxy_set_header REMOTE_ADDR $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    # IF https
    # proxy_set_header HTTPS "on";

    proxy_pass http://127.0.0.1:9807$suffix;
}

```

}

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Recently: every ~193 days

Total

17

Last Release

1704d ago

Major Versions

1.0.12 → 2.0.02018-04-02

1.0.13 → 5.8.12018-07-02

2.0.1 → 5.7.02019-07-24

2.0.2 → 6.0.02019-09-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/391d60798f559f959f37cfb05ccbe64162ea23eb6dd3d333c2b260d859dc1009?d=identicon)[Bulaohe](/maintainers/Bulaohe)

---

Top Contributors

[![Bulaohe](https://avatars.githubusercontent.com/u/17875690?v=4)](https://github.com/Bulaohe "Bulaohe (3 commits)")

---

Tags

httplaravelperformancelumenserverswoole

### Embed Badge

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

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

###  Alternatives

[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)

PHPackages © 2026

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