PHPackages                             jiechengyang/swoole-reverb - 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. jiechengyang/swoole-reverb

ActiveLibrary[Framework](/categories/framework)

jiechengyang/swoole-reverb
==========================

swoole laravel reverb server

v0.0.2(1y ago)419[1 issues](https://github.com/jiechengyang/laravel-swoole-reverb/issues)MITPHPPHP ^8.2

Since Mar 12Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/jiechengyang/laravel-swoole-reverb)[ Packagist](https://packagist.org/packages/jiechengyang/swoole-reverb)[ RSS](/packages/jiechengyang-swoole-reverb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

SwooleReverb
============

[](#swoolereverb)

SwooleReverb 是一个将 Swoole 与 Laravel Reverb 集成的包，用于高性能的 WebSocket 和 Pub/Sub 消息传递。

安装
--

[](#安装)

使用 Composer 安装该包：

```
composer require jiechengyang/swoole-reverb
```

配置
--

[](#配置)

发布：

```
php artisan vendor:publish --tag=swoole-reverb-config
```

根据需要更新配置文件 `config/swoole-reverb.php`。

```
return [
    'host' => env('REVERB_HOST', env('REVERB_HOST', '0.0.0.0')),
    'port' => env('SWOOLE_REVERB_PORT', env('REVERB_PORT', 8084)),
    'scheme' => env('REVERB_SCHEME', env('REVERB_SCHEME', 'http')),
    'app_id' => env('SWOOLE_REVERB_APP_KEY', env('REVERB_APP_ID')),
    'app_key' => env('SWOOLE_REVERB_APP_KEY', env('REVERB_APP_KEY')),
    'app_secret' => env('SWOOLE_REVERB_APP_SECRET', env('REVERB_APP_SECRET')),
    'connect_clear_tick_time' => env('SWOOLE_CONNECT_CLEAR_TICK_TIME', env('REVERB_APP_PING_INTERVAL', 60)),
    'options' => [
        'worker_num' => 1, //swoole_cpu_num(),
        'daemonize' => false,
        'log_file' => storage_path('logs/swoole_reverb.log'),
        'pid_file' => storage_path('logs/swoole_reverb.pid'),
    ],
    'redis' => [
        // 是否启用Redis通道管理器
        'enabled' => env('SWOOLE_REVERB_REDIS_ENABLED', false),
        // Redis连接配置
        'connection' => env('SWOOLE_REVERB_REDIS_CONNECTION', 'default'),
    ],
];
```

**重点说明：worker\_num 如果 &gt; 1，一定开启SWOOLE\_REVERB\_REDIS\_ENABLED。这样才能启动多进程服务，否则worker\_num&gt; 1，仍然会以单进程服务启动**

---

### 启动服务器

[](#启动服务器)

使用 Artisan 命令启动 Swoole 服务器：

```
Description:
  Swoole Reverb Server manager

Usage:
  swoole:reverb [options] [--]  [ []]

Arguments:
  action
  host
  port

Options:
  -d, --daemon
      --g               是否优雅的关闭服务
      --debug           是否应在终端中显示调试消息
  -h, --help            Display help for the given command. When no command is given display help for the list command
      --silent          Do not output any message
  -q, --quiet           Only errors are displayed. All other output is suppressed
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  {action}参数可以是以下之一:
  - start: Start the server
  - stop: Stop the server
  - restart: Restart the server
  - status: Get the server status
```

许可证
---

[](#许可证)

该包是开源软件，遵循 [MIT 许可证](https://opensource.org/licenses/MIT)。

贡献
--

[](#贡献)

欢迎贡献！请提交拉取请求或打开问题讨论你的想法。

致谢
--

[](#致谢)

- [reverb](https://reverb.laravel.com/)
- [webman-push](https://www.workerman.net/plugin/2)

支持
--

[](#支持)

如果你有任何问题或需要支持，请在 GitHub 上打开问题。

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance48

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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 ~53 days

Total

4

Last Release

264d ago

### Community

Maintainers

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

---

Top Contributors

[![jiechengyang](https://avatars.githubusercontent.com/u/33148475?v=4)](https://github.com/jiechengyang "jiechengyang (12 commits)")

---

Tags

frameworklaravelswooleBroadcastinglaravel11

### Embed Badge

![Health badge](/badges/jiechengyang-swoole-reverb/health.svg)

```
[![Health](https://phpackages.com/badges/jiechengyang-swoole-reverb/health.svg)](https://phpackages.com/packages/jiechengyang-swoole-reverb)
```

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[hypervel/hypervel

A Laravel-style PHP framework with native coroutine support for ultra-high performance.

5821.7k](/packages/hypervel-hypervel)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27431.5k](/packages/rahulalam31-laravel-abuse-ip)[openclassify/openclassify

The skeleton application for the Laravel framework.

2992.5k](/packages/openclassify-openclassify)[lawoole/framework

Lawoole is a high-performance PHP framework based on Laravel and Swoole

322.0k1](/packages/lawoole-framework)[hypervel/framework

The Hypervel framework.

1012.1k6](/packages/hypervel-framework)

PHPackages © 2026

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