PHPackages                             bardiz12/swoole-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. bardiz12/swoole-grpc

ActiveLibrary[API Development](/categories/api)

bardiz12/swoole-grpc
====================

GRPC abstraction for swoole to build high performance polygloat services

v0.0.1(7mo ago)0101Apache-2.0PHPPHP &gt;=8.1CI passing

Since Nov 17Pushed 6mo agoCompare

[ Source](https://github.com/bardiz12/swoole-grpc)[ Packagist](https://packagist.org/packages/bardiz12/swoole-grpc)[ RSS](/packages/bardiz12-swoole-grpc/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

Swoole gRPC for PHP
===================

[](#swoole-grpc-for-php)

This library is a forked version of the original OpenSwoole gRPC library, designed specifically for use with the Swoole PHP Extensions. It provides a modern, high-performance, and coroutine-friendly gRPC server and client implementation for PHP, enabling scalable microservices and efficient inter-service communication. Thanks to

About
-----

[](#about)

**Swoole gRPC** brings native gRPC support to PHP applications running on Swoole. It is a drop-in, improved, and actively maintained alternative to the OpenSwoole gRPC library, with a focus on code quality, extensibility, and developer experience.

This library is suitable for:

- Building high-performance PHP microservices with gRPC
- Integrating PHP with polyglot (multi-language) gRPC systems
- Leveraging Swoole's coroutine and async features for scalable RPC

Features
--------

[](#features)

- Native gRPC protocol implementation (HTTP/2, Protobuf)
- Coroutine-based server and client for maximum concurrency
- Server-side streaming and unary RPC support
- Client connection pooling and multiplexing
- Middleware/interceptor support for authentication, logging, etc.
- Easy integration with generated PHP stubs from `.proto` files

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

[](#installation)

Install via Composer:

```
composer require bardiz12/swoole-grpc
```

> **Note:** Requires the [Swoole PHP Extension v6.0.0 or above](https://www.swoole.co.uk/) to be installed and enabled.

Example Project
---------------

[](#example-project)

TODO
----

[](#todo)

- Create example usage of this library
- Initialize Unit Tests
- Handle Multiple HTTP Protocol handler (so we can just allocate 1 Swoole Server fot HTTP/1.1 and HTTP/2.0)
- Handle Stream Request
- Refactor Client Pool

Getting Started
---------------

[](#getting-started)

1. Define your service in a `.proto` file
2. Generate PHP stubs using [protoc-gen-swoole-grpc](https://github.com/bardiz12/protoc-gen-swoole-grpc) or compatible tools
3. Implement your service logic using the generated classes
4. Start the gRPC server using Swoole
5. Connect with a gRPC client (PHP or any other language)

Documentation
-------------

[](#documentation)

- Refer to the [Swoole documentation](https://wiki.swoole.com/) for server setup and coroutine usage

License
-------

[](#license)

MIT. See [LICENSE](./LICENSE).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance65

Regular maintenance activity

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.5% 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

229d ago

### Community

Maintainers

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

---

Top Contributors

[![doubaokun](https://avatars.githubusercontent.com/u/313478?v=4)](https://github.com/doubaokun "doubaokun (64 commits)")[![bardiz12](https://avatars.githubusercontent.com/u/25524265?v=4)](https://github.com/bardiz12 "bardiz12 (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bardiz12-swoole-grpc/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[wikimedia/parsoid

Parsoid, a bidirectional parser between wikitext and HTML5

187557.3k3](/packages/wikimedia-parsoid)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M420](/packages/drupal-core-recommended)

PHPackages © 2026

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