-
安装依赖
pecl install protobuf && pecl install grpc && composer install
-
使用proto生成服务接口和客户端
cd bin && ./gen.sh
-
启动注册中心
docker-compose up
-
启动grpc服务
cd example/server{1-3}
./rr-grpc serve -d
-
查看服务状态
./rr-grpc grpc:workers -i
-
调用服务
cd example && php client.php
-
Notifications
You must be signed in to change notification settings - Fork 0
php grpc server and client
License
onlyshow/hello-grpc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
php grpc server and client
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published