PHPackages                             swag-industries/grpc - 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. [API Development](/categories/api)
4. /
5. swag-industries/grpc

ActiveLibrary[API Development](/categories/api)

swag-industries/grpc
====================

PHP Implementation of GRPC

0.1(11mo ago)31[1 issues](https://github.com/swagindustries/grpc-php/issues)MITPHPPHP &gt;= 8.4

Since Sep 14Pushed 11mo agoCompare

[ Source](https://github.com/swagindustries/grpc-php)[ Packagist](https://packagist.org/packages/swag-industries/grpc)[ RSS](/packages/swag-industries-grpc/feed)WikiDiscussions main Synced 1w ago

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

GRPC in PHP, by Swag Industries
===============================

[](#grpc-in-php-by-swag-industries)

An honest attempt to make a library that runs GRPC asynchronously.

*This project is currently experimental, it supports only GRPC client and has not been tested in real world.*

Prerequisite
------------

[](#prerequisite)

- PHP 8.4
- [protobuf compiler](https://protobuf.dev/installation/#package-manager) (ubuntu: `sudo apt install protobuf-compiler`)
- protobuf grpc (ubuntu: `sudo apt install protobuf-compiler-grpc`)

Installation
------------

[](#installation)

Install GRPC php:

```
composer require swag-industries/grpc
```

Generate your GRPC library based on the proto file:

```
# On macos the path to the PHP plugin may be something like this:
# /opt/homebrew/Cellar/grpc/1.69.0_1/bin/grpc_php_plugin

protoc --proto_path=tests/resources/protos \
  --php_out=tests/protobuf \
   --grpc_out=generate_server:tests/protobuf \
   --plugin=protoc-gen-grpc=/usr/bin/grpc_php_plugin \
    tests/resources/protos/helloworld.proto
```

Enjoy using the client you just generated. ([usage is somehow documented on official documentation](https://grpc.io/docs/languages/php/quickstart/))

Note about ALTS
---------------

[](#note-about-alts)

Google has developed its own security transport layer aside of SSL/TLS. GRPC supports ALTS. Which is the name of the custom transport layer of Google. But GRPC also supports the standard TLS.

No package in PHP can interact with ALTS. This is something extremely custom.

This is why there is currently no plan to support ALTS.

Learn more about [GRPC authentication here](https://grpc.io/docs/guides/auth/).

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance45

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

339d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/132011?v=4)[Nikita (Anatolievich) Dudnik](/maintainers/Nek)[@Nek](https://github.com/Nek)

---

Top Contributors

[![Nek-](https://avatars.githubusercontent.com/u/972456?v=4)](https://github.com/Nek- "Nek- (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/swag-industries-grpc/health.svg)

```
[![Health](https://phpackages.com/badges/swag-industries-grpc/health.svg)](https://phpackages.com/packages/swag-industries-grpc)
```

###  Alternatives

[google/gax

Google API Core for PHP

268121.1M633](/packages/google-gax)[googleads/google-ads-php

Google Ads API client for PHP

3528.8M15](/packages/googleads-google-ads-php)[google/common-protos

Google API Common Protos for PHP

177122.7M84](/packages/google-common-protos)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k920.5k24](/packages/danog-madelineproto)[temporal/sdk

Temporal SDK

4163.2M27](/packages/temporal-sdk)[google/grpc-gcp

gRPC GCP library for channel management

185115.6M8](/packages/google-grpc-gcp)

PHPackages © 2026

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