PHPackages                             crayoon/hyperf-grpc-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. [HTTP &amp; Networking](/categories/http)
4. /
5. crayoon/hyperf-grpc-client

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

crayoon/hyperf-grpc-client
==========================

hyperf grpc client

0.1.2(3y ago)63.2k1MITPHPPHP &gt;=8.0

Since Jan 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/crayxn/hyperf-grpc-client)[ Packagist](https://packagist.org/packages/crayoon/hyperf-grpc-client)[ RSS](/packages/crayoon-hyperf-grpc-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (5)Used By (0)

hyperf-grpc-client
==================

[](#hyperf-grpc-client)

hyperf grpc 客户端，支持服务发现、负载均衡、Dtm通过服务发现、服务链路跟踪等

*请先阅读hyperf文档 grpc服务一节 *

### 引用

[](#引用)

```
composer require crayoon/hyperf-grpc-client

```

### 生成配置文件

[](#生成配置文件)

```
// 若有引用 crayoon/hyperf-grpc 请使用crayoon/hyperf-grpc发布配置
// php bin/hyperf.php vendor:publish crayoon/hyperf-grpc
// 否则
php bin/hyperf.php vendor:publish crayoon/hyperf-grpc-client

```

### 使用

[](#使用)

```
// 客户端 继承 \Crayoon\HyperfGrpcClient\BaseGrpcClient 即可
class GoodsClient extends \Crayoon\HyperfGrpcClient\BaseGrpcClient {
    ...
}
```

### DTM

[](#dtm)

兼容dtm通过服务发现负载调用服务

*请先阅读hyperf文档 DTM一节 *

```
// 引入
composer require dtm/dtm-client
// 发布配置
php bin/hyperf.php vendor:publish dtm/dtm-client

```

修改 config/dependencies.php

```
return [
    // 加入下面两个映射
    \DtmClient\Api\GrpcApi::class => \Crayoon\HyperfGrpcClient\DTM\GrpcApi::class,
    \Crayoon\HyperfGrpcClient\GrpcClientManager::class => \Crayoon\HyperfGrpcClient\DTM\GrpcClientManagerWithDtmClient::class,
];
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

3

Last Release

1161d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c968710990269a99648ae69495ae0850220f6eee547ae36ad1af3da6f799a98?d=identicon)[tangshaoxu](/maintainers/tangshaoxu)

---

Tags

grpcgrpc-clientgrpc-registryhyperfnacosphpphpclientgRPChyperf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/crayoon-hyperf-grpc-client/health.svg)

```
[![Health](https://phpackages.com/badges/crayoon-hyperf-grpc-client/health.svg)](https://phpackages.com/packages/crayoon-hyperf-grpc-client)
```

###  Alternatives

[crayoon/hyperf-grpc

hyperf grpc extend

253.7k](/packages/crayoon-hyperf-grpc)[swoole/grpc

Grpc PHP Client base on Swoole Http2 Coroutine

19718.9k1](/packages/swoole-grpc)[swoole/etcd-client

Grpc PHP Client base on Swoole Http2 Coroutine

1973.2k1](/packages/swoole-etcd-client)[ebics-api/ebics-client-php

PHP library to communicate with bank through EBICS protocol.

6411.1k](/packages/ebics-api-ebics-client-php)

PHPackages © 2026

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