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

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

swoolezf/laravel-swoole
=======================

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

02PHP

Since Mar 18Pushed 7y agoCompare

[ Source](https://github.com/zoufei0000/swoolezf-laravel-swoole)[ Packagist](https://packagist.org/packages/swoolezf/laravel-swoole)[ RSS](/packages/swoolezf-laravel-swoole/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-swoole)

[![php-badge](https://camo.githubusercontent.com/824c5c4ccb56537db3b3b53bb43d7b8edc6286f3b3d1705525e0821dfd22d27e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)](https://camo.githubusercontent.com/824c5c4ccb56537db3b3b53bb43d7b8edc6286f3b3d1705525e0821dfd22d27e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)[![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~5.4~5.4&gt;=4.0.0Features
--------

[](#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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e45f22710ab945c7fcfb73ce5c60f1a2629fd5fea177928926e315e09517d52f?d=identicon)[zoufei0000](/maintainers/zoufei0000)

---

Top Contributors

[![zoufei0000](https://avatars.githubusercontent.com/u/45680362?v=4)](https://github.com/zoufei0000 "zoufei0000 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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