PHPackages                             uniondrug/tcp-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. [Caching](/categories/caching)
4. /
5. uniondrug/tcp-client

ActiveLibrary[Caching](/categories/caching)

uniondrug/tcp-client
====================

Uniondrug Tcp Client Component for uniondrug/framework

2.0.5(8y ago)0589proprietaryPHP

Since Apr 3Pushed 8y ago3 watchersCompare

[ Source](https://github.com/uniondrug/tcp-client)[ Packagist](https://packagist.org/packages/uniondrug/tcp-client)[ RSS](/packages/uniondrug-tcp-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

TCPClient component for uniondrug/framework
===========================================

[](#tcpclient-component-for-uniondrugframework)

Uniondrug微服务基于TCP的客户端的封装，加入了Trace功能。

安装
--

[](#安装)

```
$ cd project-home
$ composer require uniondrug/tcp-client
```

修改 `app.php` 配置文件，导入服务。服务名称：`tcpClient`。

```
return [
    'default' => [
        ......
        'providers'           => [
            ......
            \Uniondrug\TcpClient\TcpClientServiceProvider::class,
        ],
    ],
];
```

使用
--

[](#使用)

```
    // 在 Injectable 继承下来的对象中：
    $data = $this->getDI()->getShared('tcpClient')->get($url);

    // 或者 直接使用 属性方式
    $data = $this->tcpClient()->get($url)
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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

Total

7

Last Release

2967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/865ceb7d8226574735eab8fc82de9cfbc4a708c291b3c816e75d53944348b686?d=identicon)[wsfuyibing](/maintainers/wsfuyibing)

---

Top Contributors

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

---

Tags

cachephalcon

### Embed Badge

![Health badge](/badges/uniondrug-tcp-client/health.svg)

```
[![Health](https://phpackages.com/badges/uniondrug-tcp-client/health.svg)](https://phpackages.com/packages/uniondrug-tcp-client)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k757.1M2.6k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k712.8M1.6k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

445124.5M44](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2514.6M10](/packages/beste-in-memory-cache)[fastd/fastd

A High Performance API Framework By Swoole Extension

42015.4k18](/packages/fastd-fastd)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)

PHPackages © 2026

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