PHPackages                             chllen/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. chllen/hyperf-grpc-client

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

chllen/hyperf-grpc-client
=========================

A grpc client component for Hyperf.

v1.0.0-alpha(3y ago)011PHPPHP &gt;=7.2

Since Feb 18Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (1)

介绍
==

[](#介绍)

该组件基于hyperf框架，构建实现服务发现的grpc客户端，我们实现了以etcd为服务中心的组件支持， 目前仅支持对接go-micro。

\#配置 添加配置文件 etcd.php command: `php bin/hyperf.php vendor:publish chllen/hyperf-grpc-client`

```
return [
    'uri' => 'http://127.0.0.1:2379',
    'version' => 'v3beta',
    'retry_interval' => 5,
    'path_prefix' => '/micro/registry',
    'framework' => 'go-micro',
    'options' => [
        'timeout' => 10,
    ],
];
```

\#使用 封装类`Chllen\HyperfGrpcClient\GrpcClient`继承于`\Hyperf\GrpcClient\BaseClient` ,根据 .proto 文件中的定义, 按需扩展:

```
use Chllen\HyperfGrpcClient\GrpcClient

class OrderClient extends GrpcClient
{
    public function create(Order $order)
    {
        return $this->_simpleRequest(
            '/orderService/create',
            $order,
            [OrderReply::class, 'decode']
        );
    }
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

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

1177d ago

### Community

Maintainers

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

---

Tags

phpswoolehyperfgrpc-client

### Embed Badge

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

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

###  Alternatives

[hyperf/hyperf

A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

6.8k3.0k2](/packages/hyperf-hyperf)[hyperf/http-server

A HTTP Server for Hyperf.

102.8M305](/packages/hyperf-http-server)[hyperf/websocket-server

A websocket server library for Hyperf.

12488.7k25](/packages/hyperf-websocket-server)[swoole-bundle/swoole-bundle

Open/Swoole Symfony Bundle

6650.4k](/packages/swoole-bundle-swoole-bundle)

PHPackages © 2026

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