PHPackages                             xiaowu/laraswoole - 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. xiaowu/laraswoole

ActiveLibrary[Framework](/categories/framework)

xiaowu/laraswoole
=================

laravel swoole

v1.8(6y ago)024MITPHPPHP &gt;=7.2.0

Since Sep 9Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (10)Used By (0)

laravel通过swoole服务启动

1、依赖
----

[](#1依赖)

```
    laravel:5.5\5.8
    php:>=7.2
    swoole:>=4.0

```

2、安装
----

[](#2安装)

```
composer require xiaowu/laraswoole

```

3、使用
----

[](#3使用)

复制public下的index.php文件，然后生成run.php内容修改成:

```
define('LARAVEL_START', microtime(true));
require __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/../bootstrap/app.php';

define('ROOT_PATH',dirname(__DIR__));

(new \Laraswoole\App()) ->run($argv);

```

4、配置
----

[](#4配置)

在cofig文件下生成一个run.php文件:

```
return [
     'localhost'=>'',  // 本服务IP地址，访问的服务器地址
     'http'=>[
         'host'=>'0.0.0.0', // 指定监听的ip地址
         'port'=>9500,      // 监听的端口
         'set_config'=>[     // 服务运行时的参数
             'worker_num'=>2, // 全异步非阻塞服务器 worker_num配置为CPU核数的1-4倍即可
             'max_request'=>5000 // 最大请求数
             // 其他参数可以参考swoole文档
         ]
     ],
    'ws'=>[

    ]
];

```

5、启动服务
------

[](#5启动服务)

```
http服务:
    php public/run.php http:start
websocket服务：

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~10 days

Recently: every ~19 days

Total

9

Last Release

2356d ago

Major Versions

v0.1 → v1.02019-09-09

### Community

Maintainers

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

---

Top Contributors

[![wuuing](https://avatars.githubusercontent.com/u/97585554?v=4)](https://github.com/wuuing "wuuing (13 commits)")[![Liangxiaowu](https://avatars.githubusercontent.com/u/40758781?v=4)](https://github.com/Liangxiaowu "Liangxiaowu (2 commits)")

### Embed Badge

![Health badge](/badges/xiaowu-laraswoole/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M190](/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.7M255](/packages/laravel-dusk)[laravel/prompts

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

708181.8M591](/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)
