Download the PHP package beauty-framework/grpc without Composer
On this page you can find all versions of the php package beauty-framework/grpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package grpc
Beauty gRPC
Support for gRPC services in the Beauty Framework, powered by RoadRunner GRPC plugin.
โจ Installation
Via composer:
Run the following command:
This will:
- ๐ Create the
generated/directory for compiled gRPC PHP classes - ๐งช Add
"GRPC\\": "generated/"tocomposer.jsonautoload - ๐ Copy the
grpc-worker.phpstub into theworkers/directory - ๐ Run
vendor/bin/rr download-protoc-binaryto install theprotocbinary
Add command to makefile:
and to PHONY block append this command name: grpcgen
๐ Usage
1. Compile your .proto files:
To compile multiple:
Alternatively, use manually:
2. Configure .rr.yaml
3. Start the server
Add new ports in docker-compose.yml in app service:
This will start the gRPC server at 127.0.0.1:9001.
๐ง Example Service
๐ Documentation
Official RoadRunner gRPC plugin docs: ๐ https://docs.roadrunner.dev/docs/plugins/grpc
๐ Notes
- Services are automatically discovered from
app/Controllers/GRPC/**/*.phpvia#[GrpcService(...)] - All generated classes are stored in
generated/ - Re-run
make grpcgenwhenever you change.protofiles
โค๏ธ Stack
All versions of grpc with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
spiral/roadrunner-cli Version ^2.7
spiral/roadrunner-grpc Version ^3.5
symfony/finder Version ^7.3
beauty-framework/cli Version ^1.0
spiral/roadrunner-cli Version ^2.7
spiral/roadrunner-grpc Version ^3.5
symfony/finder Version ^7.3
beauty-framework/cli Version ^1.0
The package beauty-framework/grpc contains the following files
Loading the files please wait ...