PHPackages                             xiaodi/swoole-channel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xiaodi/swoole-channel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xiaodi/swoole-channel
=====================

v0.0.2(7y ago)261Apache-2.0PHPPHP &gt;= 7.0

Since Dec 12Pushed 7y agoCompare

[ Source](https://github.com/edenleung/swoole-channel)[ Packagist](https://packagist.org/packages/xiaodi/swoole-channel)[ RSS](/packages/xiaodi-swoole-channel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

swoole-channel
==============

[](#swoole-channel)

#### 作者参考了 workerman/channel

[](#作者参考了-workermanchannel)

### docker测试

[](#docker测试)

```
docker pull twosee/swoole-coroutine
docker run -ti -p 9501:9501 -p 9502:9502 -p 9503:9503 -v /c/swoole:/home twosee/swoole-coroutine

```

### 安装

[](#安装)

```
composer require xiaodi/swoole-channel

```

### 服务端

[](#服务端)

`server.php`

```
use xiaodi\Channel\Server;
$server = new Server('0.0.0.0', 9501);
$server->run();

```

`client.php`

```
use xiaodi\Channel\Client;

// 自定义配置
Client::config('127.0.0.1', 9501);

// 添加监听
Client::on('sayHello', function($msg) {
    echo '我被回调了' . $msg;
});

// 广播事件
Client::publish('sayHello', 'hey xiaodi');

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

2

Last Release

2703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81fb8c1760e123896567a7795983521f3f6c46a2c041613a176f83603e5e52e9?d=identicon)[xiaodi](/maintainers/xiaodi)

---

Top Contributors

[![edenleung](https://avatars.githubusercontent.com/u/31346973?v=4)](https://github.com/edenleung "edenleung (8 commits)")

### Embed Badge

![Health badge](/badges/xiaodi-swoole-channel/health.svg)

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

###  Alternatives

[bertptrs/phpstreams

A streams library for PHP based on the Java 8 Streams API.

883.2k](/packages/bertptrs-phpstreams)[cheprasov/php-parallel

The class allows you to run multiple operations parallel in different processes and send results to the main process. Useful if you need to run multiple independent operations simultaneously, instead of sequential execution, or if you run several independent queries, for example, queries to different data bases

1712.5k5](/packages/cheprasov-php-parallel)

PHPackages © 2026

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