PHPackages                             kphcdr/swoole-laravel-framework-swoole195 - 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. kphcdr/swoole-laravel-framework-swoole195

ActiveLibrary[Framework](/categories/framework)

kphcdr/swoole-laravel-framework-swoole195
=========================================

Rebuild laravel framework on swoole for swoole 195

5.2.x-dev(9y ago)00MITPHP

Since Aug 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kphcdr/swoole-laravel-framework)[ Packagist](https://packagist.org/packages/kphcdr/swoole-laravel-framework-swoole195)[ RSS](/packages/kphcdr-swoole-laravel-framework-swoole195/feed)WikiDiscussions master Synced 2mo ago

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

Laravel Framework On Swoole
===========================

[](#laravel-framework-on-swoole)

构建于 Swoole 扩展上的 Laravel 框架

Features
--------

[](#features)

- 基于 [swoole](https://github.com/matyhtf/swoole "Swoole - PHP的异步、并行、高性能网络通信引擎"), 快速拥有 swoole 强大的功能特性
- 依旧不改动优雅框架设计的思路, 并且拥有更为强劲的性能和更多的可能
- 更低的迁移难度, 使得几乎不需要过多的改动就可以快速的集成至已有的项目
- 更多特性还会在基于 Swoole 的基础上不断完善

Requirement
-----------

[](#requirement)

1. 由于是基于 Laravel 5.2 开发, 因此要求 PHP &gt;= 5.5.9
2. 如上, 要求 Laravel Framework &gt;= 5.2
3. **Swoole 扩展**

> Swoole 扩展目前不支持 Windows, 将来也不太可能支持。不过只要部署目标机器是 \*nix 系统即可。 对于 Windows 下开发的人群, 可利用 Vagrant + Laravel 框架自带的 Homestead Box, 就可以快速配置出开发环境, 需要注意, 默认 Homestead 未安装 swoole 扩展, 可自行在虚拟机中安装配置, 并重新打包分发至团队。

Installation &amp;&amp; Configuration
-------------------------------------

[](#installation--configuration)

首先通过 Composer 安装:

`composer require chongyi/swoole-laravel-framework`

向 `config/app.php` 的 `providers` 中添加

`Swoole\Laravel\Foundation\Providers\SwooleServiceProvider::class`

然后执行以下命令, 用于生成必要的配置文件:

`php artisan vendor:publish`

您有必要拷贝一份 `Illuminate\Contracts\Http\Kernel` 的实现, 默认是在 `app/Http/Kernel.php`, 可以将该文件 拷贝一份并重命名(包括其中的类名, 比如 `SwooleKernel`), 并将其中的 `App\Http\Kernel` 的继承对象改为 `Swoole\Laravel\Foundation\Http\Kernel`, 最后, 编辑 `bootstrap/swoole-app.php`, 将 `Kernel` 的单例注册对象修改为您所重命名的那个, 例如:

```
$app->singleton(
    Illuminate\Contracts\Http\Kernel::class,
    App\Http\SwooleKernel::class
);
```

至此, 安装和配置完毕。

Usage
-----

[](#usage)

执行以下命令即可启动服务:

`vendor/bin/swoole --host= --port=`

License
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT "MIT License")

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~4 days

Total

2

Last Release

3551d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b70d068fd5672bc52b515ed5a7b803c743244a79bb2c310e113a47d541e6b87?d=identicon)[kphcdr](/maintainers/kphcdr)

---

Top Contributors

[![chongyi](https://avatars.githubusercontent.com/u/7391880?v=4)](https://github.com/chongyi "chongyi (21 commits)")[![kphcdr](https://avatars.githubusercontent.com/u/3817838?v=4)](https://github.com/kphcdr "kphcdr (3 commits)")

### Embed Badge

![Health badge](/badges/kphcdr-swoole-laravel-framework-swoole195/health.svg)

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

###  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)
