mosamirzz / swoole-grpc
Swoole GRPC framework for building high performance services
0.1
2024-12-09 09:30 UTC
Requires
- php: >=8.0
- ext-swoole: >=5.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.6
- phpunit/phpunit: ^9.5
- swoole/ide-helper: ^5.1
- vimeo/psalm: ^4.6
Suggests
- ext-swoole: *
- google/protobuf: ^3.21
This package is auto-updated.
Last update: 2025-01-09 09:40:00 UTC
README
OpenSwoole GRPC is an open-source high-performance GRPC solution for PHP including server side and client side implementation.
GRPC is a high performance, open source universal RPC framework. OpenSwoole GRPC is a high performance integration solution for building cloud-native multiple language microservices architecture.
Install
You can add this package to your project using Composer:
composer require mosamirzz/swoole-grpc
Features
- Native GRPC implementation compliant
- PHP/PHP-FPM GRPC client compliant
- OpenSwoole GRPC Compiler provided
- GRPC unary mode support
- GRPC server side stream mode
- GRPC server side interceptors
- GRPC client side connection pooling and multiplexing
Example
You can find example helloworld project at /example.
Next steps:
- Create
.proto
for your service - Generate PHP stub codes with Open Swoole GRPC Compiler
- Implement your own service
- Integrate with GRPC service with GRPC client
Documentation
Documentation for Open Swoole can be found on the Open Swoole website.