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

ActiveLibrary

jsnlib/swoole
=============

輔助 Swoole 的工具

1.1.1(8y ago)1110[1 issues](https://github.com/fdjkgh580/jsnlib-swoole/issues)MITPHPPHP &gt;=7.0.0

Since Oct 6Pushed 8y agoCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

swoole
======

[](#swoole)

輔助 [Swoole](https://github.com/swoole/swoole-src) 的工具

用法
--

[](#用法)

監聽 WebSocket 訊息事件

```
$ws = new swoole_websocket_server("0.0.0.0", 8080);

$ws->on('message', function ($ws, $frame) {

 	\Jsnlib\Swoole::push_all([
		'ws'           => $ws,
		'self'         => $frame->fd,
		'is_send_self' => false,
		'data'         => $frame->data
 	]);

});
```

參數說明
----

[](#參數說明)

- ws：Websocket 物件
- self: 當前連接的對象
- is\_send\_self: 是否要發送給自己？建議使用 false
- data: 發送的數據

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2956d ago

### Community

Maintainers

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

---

Top Contributors

[![fdjkgh580-2](https://avatars.githubusercontent.com/u/60056647?v=4)](https://github.com/fdjkgh580-2 "fdjkgh580-2 (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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