PHPackages                             swala/server - 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. swala/server

ActiveSwala-server[Framework](/categories/framework)

swala/server
============

Swoole &amp; Laravel

v1.0.2(10y ago)315310[1 issues](https://github.com/ChieveiT/swala/issues)MITPHPPHP &gt;=5.5.9

Since Jun 29Pushed 10y ago4 watchersCompare

[ Source](https://github.com/ChieveiT/swala)[ Packagist](https://packagist.org/packages/swala/server)[ RSS](/packages/swala-server/feed)WikiDiscussions master Synced 1mo ago

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

\#Swoole &amp; Laravel 以swoole\_http\_server为应用服务器，Laravel为业务框架的web后端方案

\##依赖

  php&gt;=5.5.9   ext-swoole&gt;=1.7.7   laravel/framework5.1.\*   swala/installer~1.0 \##安装 在laravel5.1项目目录下

```
composer require swala/server:~1.0

```

安装后位于项目目录下的server/

\##配置 server/config.php

默认host为127.0.0.1，port为9501

其余配置项对应swoole的可用配置项，[传送门](http://wiki.swoole.com/wiki/page/274.html)

\##脚本 在server目录下

- 启动

    php startup.php
- 关闭

    php shutdown.php
- 重启所有Worker

    php worker\_restart.php
- 重启所有Task

    php task\_restart.php

\##说明

- instance/下存放服务器实例的PID记录，ini格式，它在swoole\_http\_server的start回调时创建，shutdown回调时销毁
- log/下存放swoole\_http\_server的log
- feature\_test/下有三个测试脚本，如果想了解一些swoole\_http\_server相对于原生php所表现出来的行为特性，运行并阅读这三个脚本或许会有启发，详细说明[特性测试](docs/feature_test.md)
- doc/为文档目录

\##缺陷

- 不支持文件上传
- 不支持静态资源响应

\##代码许可 [MIT](LICENSE)

> Written with [StackEdit](https://stackedit.io/).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~55 days

Total

3

Last Release

3865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17440221cdbc97eaad96b5fc07a379734765ad4bc632b8623743fa63aaff53a5?d=identicon)[ChieveiT](/maintainers/ChieveiT)

---

Top Contributors

[![ChieveiT](https://avatars.githubusercontent.com/u/9376704?v=4)](https://github.com/ChieveiT "ChieveiT (2 commits)")[![denghongcai](https://avatars.githubusercontent.com/u/1433247?v=4)](https://github.com/denghongcai "denghongcai (2 commits)")

### Embed Badge

![Health badge](/badges/swala-server/health.svg)

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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