PHPackages                             silentred/lumoon - 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. [Framework](/categories/framework)
4. /
5. silentred/lumoon

ActiveLibrary[Framework](/categories/framework)

silentred/lumoon
================

Lumen &amp; Swoole

142.2k5[1 issues](https://github.com/silentred/lumoon/issues)PHP

Since Jan 19Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#Lumoon

Lumen on Swoole

Depends On
----------

[](#depends-on)

- php &gt;= 5.5.9
- laravel/lumen &gt; 5.1.\*
- ext-swoole &gt;= 1.7.19

\##Install

```
 composer require silentred/lumoon
```

Because Lumen does not use Http Kernel, you have to create a subclass of `\Laravel\Lumen\Application` under `app` directory. In `bootstrap` directory, change Application in app.php to the new one as `App\Application`

\##Usage

```
 vendor/bin/lumoon start | stop | reload | restart | quit
```

\##Config

In .env , use LUMOON\_\* to config swoole server. For example

```
LUMOON_REACTOR_NUM=1
LUMOON_WORKER_NUM=4
LUMOON_BACKLOG=128
LUMOON_DISPATCH_MODE=1

```

\###pid\_file
-------------

[](#pid_file)

```
 LUMOON_PID_FILE=/path/to/lumoon.pid
```

default is at /lumen/storage/logs/swoole.pid

\###gzip
--------

[](#gzip)

```
 LUMOON_GZIP=1
```

level is in the range from 1 to 9, bigger is compress harder and use more CPU time.

```
 LUMOON_GZIP_MIN_LENGTH=1024
```

Sets the mINImum length of a response that will be gzipped.

\###deal\_with\_public
----------------------

[](#deal_with_public)

Use this ***ONLY*** when developing

```
 LUMOON_DEAL_WITH_PUBLIC=true
```

\###Swoole
----------

[](#swoole)

Eexample:

```
 LUMOON_HOST=0.0.0.0
```

Default host is 127.0.0.1:9050

See Swoole's document:

[简体中文](http://wiki.swoole.com/wiki/page/274.html)

[English](https://cdn.rawgit.com/tchiotludo/swoole-ide-helper/dd73ce0dd949870daebbf3e8fee64361858422a1/docs/classes/swoole_server.html#method_set)

\##Work with nginx
------------------

[](#work-with-nginx)

```
server {
	listen       80;
	server_name  localhost;

	root /path/to/lumoon/public;

	location ~ \.(png|jpeg|jpg|gif|css|js)$ {
		break;
	}

	location / {
		proxy_set_header   Host $host:$server_port;
		proxy_set_header   X-Real-IP $remote_addr;
		proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_http_version 1.1;

		proxy_pass http://127.0.0.1:9050;
	}
}
```

\#License [MIT](LICENSE)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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/80d16c8ab751ec78351272d9f13e66b5439e12635d2d44ca70ba9aff81d58230?d=identicon)[silentred](/maintainers/silentred)

---

Top Contributors

[![garveen](https://avatars.githubusercontent.com/u/3214266?v=4)](https://github.com/garveen "garveen (12 commits)")[![silentred](https://avatars.githubusercontent.com/u/3345293?v=4)](https://github.com/silentred "silentred (5 commits)")

---

Tags

lumenswooleweb-server

### Embed Badge

![Health badge](/badges/silentred-lumoon/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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