PHPackages                             z1px/laravel-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. z1px/laravel-swoole

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

z1px/laravel-swoole
===================

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

v1.0.0(5y ago)013MITPHPPHP ^7.2

Since Dec 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/z1px/laravel-swoole)[ Packagist](https://packagist.org/packages/z1px/laravel-swoole)[ RSS](/packages/z1px-laravel-swoole/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

Laravel-Swoole
==============

[](#laravel-swoole)

[![php-badge](https://camo.githubusercontent.com/4c62148864d567c4ee794ffab09c1dd4a3f45e41064bbb016440beddaae71a4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322d3838393242462e737667)](https://camo.githubusercontent.com/4c62148864d567c4ee794ffab09c1dd4a3f45e41064bbb016440beddaae71a4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e322d3838393242462e737667)[![packagist-badge](https://camo.githubusercontent.com/80f981e6613c06efdca038d3be0e81929befba2c575c15b7f75513cc2e24b273/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73776f6f6c6574772f6c61726176656c2d73776f6f6c652e737667)](https://packagist.org/packages/swooletw/laravel-swoole)[![Total Downloads](https://camo.githubusercontent.com/9af3545159810a50e34149ca3fbbce7c48e0a12c3a726361e3b779117a9c00df/68747470733a2f2f706f7365722e707567782e6f72672f73776f6f6c6574772f6c61726176656c2d73776f6f6c652f646f776e6c6f616473)](https://packagist.org/packages/swooletw/laravel-swoole)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8b21de651250385796391d9e67702df553ae559f1fe65ce842685c9834df1b35/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73776f6f6c6574772f6c61726176656c2d73776f6f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/swooletw/laravel-swoole/?branch=master)[![travis-badge](https://camo.githubusercontent.com/8fd0b20a37b4fb58dab072f0afe2359b718d06441baaf9e949873917ef170cac/68747470733a2f2f6170692e7472617669732d63692e6f72672f73776f6f6c6574772f6c61726176656c2d73776f6f6c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/swooletw/laravel-swoole)

This package provides a high performance HTTP server to speed up your Laravel/Lumen application based on [Swoole](http://www.swoole.com/).

Version Compatibility
---------------------

[](#version-compatibility)

PHPLaravelLumenSwoole&gt;=7.2&gt;=5.5&gt;=5.5&gt;=4.3.1Features
--------

[](#features)

- Run **Laravel/Lumen** application on top of **Swoole**.
- Outstanding performance boosting up to **5x** faster.
- Sandbox mode to isolate app container.
- Support running websocket server in **Laravel**.
- Support `Socket.io` protocol.
- Support Swoole table for cross-process data sharing.

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

[](#documentation)

Please see [Wiki](https://github.com/swooletw/laravel-swoole/wiki)

Benchmark
---------

[](#benchmark)

Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64

Benchmarking Tool: [wrk](https://github.com/wg/wrk)

```
wrk -t4 -c100 http://your.app

```

### Nginx with FPM

[](#nginx-with-fpm)

```
wrk -t4 -c10 http://lumen-swoole.local

Running 10s test @ http://lumen-swoole.local
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     6.41ms    1.56ms  19.71ms   71.32%
    Req/Sec   312.99     28.71   373.00     72.00%
  12469 requests in 10.01s, 3.14MB read
Requests/sec:   1245.79
Transfer/sec:    321.12KB

```

### Swoole HTTP Server

[](#swoole-http-server)

```
wrk -t4 -c10 http://lumen-swoole.local:1215

Running 10s test @ http://lumen-swoole.local:1215
  4 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.39ms    4.88ms 105.21ms   94.55%
    Req/Sec     1.26k   197.13     1.85k    68.75%
  50248 requests in 10.02s, 10.88MB read
Requests/sec:   5016.94
Transfer/sec:      1.09MB

```

Q&amp;A
-------

[](#qa)

The common questions are collected in [Q&amp;A](https://github.com/swooletw/laravel-swoole/wiki/Z4.-Q&A). You can go check if your question is listed in the document.

Issues and Support
------------------

[](#issues-and-support)

Please read [Issues Guideline](https://github.com/swooletw/laravel-swoole/wiki/Z2.-Issues-Guideline) before you submit an issue, thanks.

Bugs and feature request are tracked on [GitHub](https://github.com/swooletw/laravel-swoole/issues).

Credits
-------

[](#credits)

[Huang-Yi](https://github.com/huang-yi), [![](https://camo.githubusercontent.com/f099074a97b1fca1f886ce939443667ae8b27b36515f349e6f14c7159cf5c0c6/68747470733a2f2f692e696d6775722e636f6d2f546a794a496f4f2e706e67)](https://unisharp.com)

Alternatives
------------

[](#alternatives)

- [laravel-s](https://github.com/hhxsv5/laravel-s)

License
-------

[](#license)

The Laravel-Swoole package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

Support on Beerpay
------------------

[](#support-on-beerpay)

Hey dude! Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/22c9ec7e6308bca7b75164cd5cd0fe4bb3414fcd2beb9099e0946c81c301023a/68747470733a2f2f626565727061792e696f2f73776f6f6c6574772f6c61726176656c2d73776f6f6c652f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/swooletw/laravel-swoole) [![Beerpay](https://camo.githubusercontent.com/371106dcc253d3ab224fd41d47af05a40baa15daf74377f6cdd3bfa538262092/68747470733a2f2f626565727061792e696f2f73776f6f6c6574772f6c61726176656c2d73776f6f6c652f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/swooletw/laravel-swoole?focus=wish)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5096c743e3e5302acce5980b6a35cf807064443c47d6cbaed1e3b9ef8a73d917?d=identicon)[\_kevin](/maintainers/_kevin)

---

Top Contributors

[![z1px](https://avatars.githubusercontent.com/u/20632023?v=4)](https://github.com/z1px "z1px (8 commits)")

---

Tags

httplaravelperformancelumenserverswoole

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/z1px-laravel-swoole/health.svg)](https://phpackages.com/packages/z1px-laravel-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)[huang-yi/shadowfax

Run Laravel on Swoole.

3511.7k](/packages/huang-yi-shadowfax)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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