Download the PHP package spiral/php-grpc without Composer
On this page you can find all versions of the php package spiral/php-grpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spiral/php-grpc
More information about spiral/php-grpc
Files in spiral/php-grpc
Package php-grpc
Short Description High-Performance GRPC server for PHP applications
License MIT
Informations about the package php-grpc
⚠️ RRv2 protoc-gen-php-grpc
releases are here: https://github.com/roadrunner-server/roadrunner/releases ⚠️
⚠️ PHP Client
for the RRv2 is here: https://github.com/spiral/roadrunner-grpc ⚠️
PHP-GRPC
PHP-GRPC is an open-source (MIT) high-performance PHP GRPC server build at top of RoadRunner. Server support both PHP and Golang services running within one application.
Note:
For the RoadRunner v2, please use the RR-GRPC library.
Documentation:
Features:
- native Golang GRPC implementation compliant
- minimal configuration, plug-and-play model
- very fast, low footprint proxy
- simple TLS configuration
- debug tools included
- Prometheus metrics
- middleware and server customization support
- code generation using
protoc
plugin (go get github.com/spiral/php-grpc/cmd/protoc-gen-php-grpc
) - transport, message, worker error management
- response error codes over php exceptions
- works on Windows
Usage:
Install rr-grpc
and protoc-gen-php-grpc
by building it or use pre-build binaries.
Define your service schema using proto file. You can scaffold protobuf classes and GRPC service interfaces using:
Make sure to install protoc compiler and run
composer require spiral/php-grpc
first
Implement needed classes and create worker.php to invoke your services.
Place .rr.yaml (or any other format supported by viper configurator) into the root of your project. You can run your application now:
To reset workers state:
To show workers statistics:
See example.
You can find more details regarding server configuration at RoadRunner Wiki.
License:
MIT License (MIT). Please see SpiralScout.
All versions of php-grpc with dependencies
ext-json Version *
symfony/polyfill-php80 Version ^1.22
symfony/polyfill-php73 Version ^1.22
google/protobuf Version ^3.7
spiral/roadrunner Version ^1.8