PHPackages                             onex/sword - 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. onex/sword

ActiveLibrary[Framework](/categories/framework)

onex/sword
==========

lumen run in swoole\_http\_server

0.0.3(9y ago)76114[1 PRs](https://github.com/shopex/sword/pulls)BSD-3-ClausePHPPHP &gt;=5.6.9

Since Jul 29Pushed 9y ago9 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

sword
=====

[](#sword)

Summary (简述)
------------

[](#summary-简述)

Sword is a tool used on lumen. It allows the lumen to run in memory. Each request is only to be used for the Controller class, and no need to initialize the entire framework, which greatly improve the performance of the high performance.

Sword 是用在lumen上的一个工具。它可以使lumen常驻运行内存中。每次请求都只实例化Controller等类，而不需要初始化整个框架，从而大幅度提运行高性能。

Notice
------

[](#notice)

- [注意事项](doc/notice.md)

installed
---------

[](#installed)

```
composer require onex/sword
```

- 复制Application.php到app目录下

```
copy lumen_project_dir/vendor/onex/sword/misc/Application.php lumen_project_dir/app/
```

- 修改 $app实例化的类

```
// 位于lumen_project_dir/bootstrap/app.php文件

//$app = new Laravel\Lumen\Application(
//   realpath(__DIR__.'/../')
//);

//修改为以下内容
$app = new App\Application(
    realpath(__DIR__.'/../')
);
```

run
---

[](#run)

```
vendor/bin/sword
```

config
------

[](#config)

- [配置信息](doc/config.md)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

Every ~134 days

Total

3

Last Release

3356d ago

PHP version history (2 changes)0.0.1PHP &gt;=5.6.19

0.0.2PHP &gt;=5.6.9

### Community

Maintainers

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

---

Top Contributors

[![elrond-g](https://avatars.githubusercontent.com/u/6926269?v=4)](https://github.com/elrond-g "elrond-g (16 commits)")

---

Tags

lumenswoolewebserver

### Embed Badge

![Health badge](/badges/onex-sword/health.svg)

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

PHPackages © 2026

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