PHPackages                             hardywen/lumen-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. hardywen/lumen-swoole

ActiveLibrary

hardywen/lumen-swoole
=====================

forked from z-song/lumen-swoole can help you work with lumen and swoole.

02PHP

Since Aug 19Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

lumen-swoole
============

[](#lumen-swoole)

[![Build Status](https://camo.githubusercontent.com/6ad0c2a5514a98f0f5a5d110eb536067724b8c6d9c6ffa5a38aef1a112bb2563/68747470733a2f2f7472617669732d63692e6f72672f7a2d736f6e672f6c756d656e2d73776f6f6c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/z-song/lumen-swoole)[![StyleCI](https://camo.githubusercontent.com/43882a36e530004a9992ea8520f73215242b9640467c64d7fa613f7406c1af7c/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353534353538312f736869656c64)](https://styleci.io/repos/65545581)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/03ef12859daf95a7a3fb975b251f4fc6a503becc6f8537d03001d17e4c9c989d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7a2d736f6e672f6c756d656e2d73776f6f6c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/z-song/lumen-swoole/?branch=master)

Run [lumen](https://lumen.laravel.com/) on [swoole](http://www.swoole.com/) to get better performance.

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

[](#installation)

```
composer require encore/lumen-swoole

```

Usage
-----

[](#usage)

```
➜  lumen-v5.5.0 git:(master) vendor/bin/lumen-swoole -h
lumen-swoole 0.1.0

Usage: vendor/bin/lumen-swoole {stop|restart|reload}

  -h       Server hostname (default: 127.0.0.1).
  -p           Server port (default: 8083).
  -s         Application script.
  -d         Run server in daemon mode.
  -v        Output version and exit.

  --host             Server hostname (default: 127.0.0.1).
  --port             Server port (default: 8083).
  --help             Output this help and exit.
  --version          Output version and exit.

Examples:
  vendor/bin/lumen-swoole -d
  vendor/bin/lumen-swoole -h 127.0.0.1 -p 80 -d
  vendor/bin/lumen-swoole -h 127.0.0.1 -p 80 -d
  vendor/bin/lumen-swoole -s path/to/bootstrap/script.php

  vendor/bin/lumen-swoole restart
  vendor/bin/lumen-swoole reload
  vendor/bin/lumen-swoole restart

Other options please see http://wiki.swoole.com/wiki/page/274.html.

```

After start server, open  in browser.

Benchmark
---------

[](#benchmark)

```
➜  lumen-v5.2.1 git:(master) ab -c 200 -n 200000 -k http://127.0.0.1:8083/
This is ApacheBench, Version 2.3
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 20000 requests
Completed 40000 requests
Completed 60000 requests
Completed 80000 requests
Completed 100000 requests
Completed 120000 requests
Completed 140000 requests
Completed 160000 requests
Completed 180000 requests
Completed 200000 requests
Finished 200000 requests

Server Software:        swoole-http-server
Server Hostname:        127.0.0.1
Server Port:            8083

Document Path:          /
Document Length:        40 bytes

Concurrency Level:      200
Time taken for tests:   33.035 seconds
Complete requests:      200000
Failed requests:        0
Keep-Alive requests:    200000
Total transferred:      43600000 bytes
HTML transferred:       8000000 bytes
Requests per second:    6054.18 [#/sec] (mean)
Time per request:       33.035 [ms] (mean)
Time per request:       0.165 [ms] (mean, across all concurrent requests)
Transfer rate:          1288.88 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       9
Processing:    17   33   6.2     31      81
Waiting:       17   33   6.2     31      81
Total:         17   33   6.2     31      81

Percentage of the requests served within a certain time (ms)
  50%     31
  66%     33
  75%     35
  80%     36
  90%     41
  95%     46
  98%     52
  99%     56
 100%     81 (longest request)

```

License
-------

[](#license)

`lumen-swoole` is licensed under [The MIT License (MIT)](LICENSE.txt).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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/730b1d31144cf283dd5a4f979a32cff0fec848d33fd13bbe6488c5509417f6c7?d=identicon)[hardywen](/maintainers/hardywen)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (48 commits)")[![hardywen](https://avatars.githubusercontent.com/u/7113324?v=4)](https://github.com/hardywen "hardywen (4 commits)")

### Embed Badge

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

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

PHPackages © 2026

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