PHPackages                             ltd-beget/php-grpc-client-generator - 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. ltd-beget/php-grpc-client-generator

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

ltd-beget/php-grpc-client-generator
===================================

Generate grpc client classes after protoc-gen-php

v0.4(7y ago)48.9k↓33.3%1MITPHPPHP &gt;=5.4.0

Since Mar 2Pushed 7y ago23 watchersCompare

[ Source](https://github.com/LTD-Beget/php-grpc-client-generator)[ Packagist](https://packagist.org/packages/ltd-beget/php-grpc-client-generator)[ RSS](/packages/ltd-beget-php-grpc-client-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (14)Used By (0)

Php GRPC client generator
=========================

[](#php-grpc-client-generator)

This util generate wrappers for client classes generated by `protoc-gen-php`.

Proto file example
------------------

[](#proto-file-example)

```
syntax = "proto3";

package beget.hello;

service Greeter {
  rpc SayHello (HelloRequest) returns (HelloReply) {}
}

message HelloRequest {
  string name = 1;
}

message HelloReply {
  string message = 1;
}

```

Usage
-----

[](#usage)

```
protoc-gen-php -Dmultifile -i ../protos/ -o . ../protos/hello.proto

```

```
ini_set('xdebug.max_nesting_level', 3000);

use LTDBeget\util\PhpGrpcClientGenerator\PhpGenerator;

(new PhpGenerator())
    ->setInputPath(__DIR__ . '/proto')
    ->setOutputPath(__DIR__)
    ->run();

```

```
require __DIR__ . '/vendor/autoload.php';

$client = new \beget\hello\GreeterClientSimple(
    new \beget\hello\GreeterClient(
        'localhost:50051',
        [
            'credentials' => Grpc\ChannelCredentials::createInsecure(),
        ]
    )
);

$request = new \beget\hello\HelloRequest();
$request->setName(time());

$reply = $client->SayHello($request);

echo $reply->getMessage(), PHP_EOL;

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

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

Every ~81 days

Recently: every ~101 days

Total

7

Last Release

2874d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/7425602f548202c1a82937b853238f55adf1952876e5a2c2dcd595719734a612?d=identicon)[Grey2k](/maintainers/Grey2k)

---

Top Contributors

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

---

Tags

internal-libgRPCproto

### Embed Badge

![Health badge](/badges/ltd-beget-php-grpc-client-generator/health.svg)

```
[![Health](https://phpackages.com/badges/ltd-beget-php-grpc-client-generator/health.svg)](https://phpackages.com/packages/ltd-beget-php-grpc-client-generator)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[google/protobuf

proto library for PHP

370140.3M366](/packages/google-protobuf)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[recca0120/laravel-erd

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using Vuerd.

36072.0k](/packages/recca0120-laravel-erd)

PHPackages © 2026

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