PHPackages                             sky-l/php\_socket\_client - 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. sky-l/php\_socket\_client

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

sky-l/php\_socket\_client
=========================

1.0(10y ago)215MITPHPPHP &gt;5.3.0

Since Nov 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/sky-L/php_socket_client)[ Packagist](https://packagist.org/packages/sky-l/php_socket_client)[ RSS](/packages/sky-l-php-socket-client/feed)WikiDiscussions master Synced 4w ago

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

php\_socket\_client
===================

[](#php_socket_client)

> 这个包的功能和[workerman](http://www.workerman.net/gatewaydoc/advanced/push.html) 的功能没有任何修改，只是做成了一个包。方便使用composer的项目使用

使用
--

[](#使用)

### 引入文件

[](#引入文件)

```
require "vendor/autoload.php";

use skylee\gateway;

Gateway::$registerAddress = '127.0.0.1:1236';

```

### 例子

[](#例子)

```
Gateway::sendToAll('{"type":"broadcast","content":"hello all"}');

Gateway::sendToClient($client_id,'{"type":"say","content":"hello"}');

Gateway::isOnline($client_id);

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3883d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3827764?v=4)[skyLee](/maintainers/sky-L)[@sky-L](https://github.com/sky-L)

---

Top Contributors

[![sky-L](https://avatars.githubusercontent.com/u/3827764?v=4)](https://github.com/sky-L "sky-L (13 commits)")

### Embed Badge

![Health badge](/badges/sky-l-php-socket-client/health.svg)

```
[![Health](https://phpackages.com/badges/sky-l-php-socket-client/health.svg)](https://phpackages.com/packages/sky-l-php-socket-client)
```

###  Alternatives

[sas/variant-switch

Show a variant switch within the listing and cart

181.2k](/packages/sas-variant-switch)

PHPackages © 2026

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