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

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

hocvt/laravel-swoole
====================

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

v6.0.0(6y ago)09MITPHPPHP ^7.2

Since Oct 2Pushed 6y agoCompare

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

READMEChangelog (1)Dependencies (13)Versions (43)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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~18 days

Recently: every ~23 days

Total

40

Last Release

2441d ago

Major Versions

v2.6.64 → v6.0.02019-09-05

PHP version history (2 changes)v2.1.0PHP ^7.1

v2.6.0PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2509658?v=4)[Stupid Dev](/maintainers/vuthaihoc)[@vuthaihoc](https://github.com/vuthaihoc)

---

Top Contributors

[![albertcht](https://avatars.githubusercontent.com/u/9117929?v=4)](https://github.com/albertcht "albertcht (538 commits)")[![fractalzombie](https://avatars.githubusercontent.com/u/5721336?v=4)](https://github.com/fractalzombie "fractalzombie (18 commits)")[![damonto](https://avatars.githubusercontent.com/u/9162521?v=4)](https://github.com/damonto "damonto (16 commits)")[![killtw](https://avatars.githubusercontent.com/u/1076225?v=4)](https://github.com/killtw "killtw (16 commits)")[![lilianjin](https://avatars.githubusercontent.com/u/21023027?v=4)](https://github.com/lilianjin "lilianjin (14 commits)")[![huang-yi](https://avatars.githubusercontent.com/u/6905173?v=4)](https://github.com/huang-yi "huang-yi (13 commits)")[![toxmc](https://avatars.githubusercontent.com/u/3990846?v=4)](https://github.com/toxmc "toxmc (3 commits)")[![mxp100](https://avatars.githubusercontent.com/u/8124083?v=4)](https://github.com/mxp100 "mxp100 (2 commits)")[![tiamo](https://avatars.githubusercontent.com/u/1963342?v=4)](https://github.com/tiamo "tiamo (2 commits)")[![mabdulazim](https://avatars.githubusercontent.com/u/42019012?v=4)](https://github.com/mabdulazim "mabdulazim (1 commits)")[![marscoo](https://avatars.githubusercontent.com/u/22096998?v=4)](https://github.com/marscoo "marscoo (1 commits)")[![hezachary](https://avatars.githubusercontent.com/u/1653734?v=4)](https://github.com/hezachary "hezachary (1 commits)")[![netdown](https://avatars.githubusercontent.com/u/4265403?v=4)](https://github.com/netdown "netdown (1 commits)")[![pingcheng](https://avatars.githubusercontent.com/u/8447539?v=4)](https://github.com/pingcheng "pingcheng (1 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (1 commits)")[![shenjiayu](https://avatars.githubusercontent.com/u/6376156?v=4)](https://github.com/shenjiayu "shenjiayu (1 commits)")[![storyn26383](https://avatars.githubusercontent.com/u/6954098?v=4)](https://github.com/storyn26383 "storyn26383 (1 commits)")[![youanden](https://avatars.githubusercontent.com/u/183880?v=4)](https://github.com/youanden "youanden (1 commits)")[![ashleigh-hopkins](https://avatars.githubusercontent.com/u/3603553?v=4)](https://github.com/ashleigh-hopkins "ashleigh-hopkins (1 commits)")[![valeriu-dev](https://avatars.githubusercontent.com/u/14403446?v=4)](https://github.com/valeriu-dev "valeriu-dev (1 commits)")

---

Tags

httplaravelperformancelumenserverswoole

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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