HUB
Sign inSign up

llaoj/php-grpc-gen

By llaoj

•Updated over 6 years ago

protoc && grpc_php_plugin to generate php grpc code.

Image
3

384

llaoj/php-grpc-gen repository overview

⁠why

due to network and other reasons, the download and Compilation of grpc_php_plugin is very difficult, so I made this image to use. enjoy it.

⁠protoc && grpc_php_plugin

  • you can use this image to generate php grpc code
  • build from grpc https://github.com/grpc/grpc
  • the tag/version is consistent with the grpc repo
  • installed protoc grpc_php_plugin

⁠example

docker run --rm -it -v /host/file/dir:/root llaoj/php-grpc-gen:tagname bash

cd protobuf-file-path

protoc --proto_path=. \
--php_out=. \
--grpc_out=. \
--plugin=protoc-gen-grpc=/opt/grpc/bin/grpc_php_plugin \
./*.proto

⁠tag <=> version

docker tagprotocgrpc_php_plugin
1.28.13.11.41.28.1
1.30.03.12.31.30.0

Tag summary

Content type

Image

Digest

Size

157.6 MB

Last updated

over 6 years ago

docker pull llaoj/php-grpc-gen:1.30.0