protoc && grpc_php_plugin to generate php grpc code.
384
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.
https://github.com/grpc/grpcdocker 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
| docker tag | protoc | grpc_php_plugin |
|---|---|---|
| 1.28.1 | 3.11.4 | 1.28.1 |
| 1.30.0 | 3.12.3 | 1.30.0 |
Content type
Image
Digest
Size
157.6 MB
Last updated
over 6 years ago
docker pull llaoj/php-grpc-gen:1.30.0