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(5mo ago)0101Apache-2.0PHPPHP &gt;=8.1CI passing

Since Nov 17Pushed 5mo 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 1mo ago

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

31

—

LowBetter than 68% of packages

Maintenance71

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

176d 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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[rubix/server

Deploy your Rubix ML models to production with scalable stand-alone inference servers.

632.3k](/packages/rubix-server)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)

PHPackages © 2026

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