PHPackages                             momo/swoole\_clients - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. momo/swoole\_clients

ActiveLibrary[HTTP &amp; Networking](/categories/http)

momo/swoole\_clients
====================

Swoole Client TCP/UDP

1.0(7y ago)038MITPHPPHP &gt;=7.0

Since Aug 11Pushed 7y agoCompare

[ Source](https://github.com/king-fang/momo_swoole_client)[ Packagist](https://packagist.org/packages/momo/swoole_clients)[ RSS](/packages/momo-swoole-clients/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

momo\_swoole\_client
====================

[](#momo_swoole_client)

#### TCP/UDP

[](#tcpudp)

```
    /**
     * 建立swoole客户端  默认TCP
     * @param string $serverType  类型 TCP/UDP
     * @param bool $isSync 是否同步/异步
     * @param bool $isKeep 是否长连接
     */
    $swoole = new \Swoole\BaseSwooleConnect('tcp',false,false);

```

### 异步回调设置 默认 SwooleCallback

[](#异步回调设置-默认-swoolecallback)

```
//自定义回调只需要实现ISwooleCallback接口即可
$client = new \Client\TcpClient($swoole,$data,new \Swoole\SwooleCallback());

```

### 建立连链接发送数据

[](#建立连链接发送数据)

```
$data = [
    'name' => 'fxj',
    'age' => 18,
];
$res = $client->doConnect('192.168.3.10',8090);
var_dump($res);

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

2880d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29619744?v=4)[fxj](/maintainers/king-fang)[@king-fang](https://github.com/king-fang)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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