Skip to content

Docker image with compiled binary protoc, grpc_php_plugin and downloaded protoc-gen-php-grpc (plugin by Roadrunner project)

License

Notifications You must be signed in to change notification settings

igancev/protoc-php-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

protoc-php-plugins

Docker image with compiled binary protoc, grpc_php_plugin and downloaded protoc-gen-php-grpc (plugin by Roadrunner)

Image based on php:8.2-cli-alpine3.18, and contains:

Usage

You can find usage examples in my article https://igancev.ru/2023-08-14-grpc-server-on-symfony

Use /usr/bin/protoc-gen-php-grpc:

docker run -u $(id -u):$(id -g) -v `pwd`:/app \
  ghcr.io/igancev/protoc-php-plugins:latest protoc \
  --plugin=protoc-gen-grpc=/usr/bin/grpc_php_plugin \
  --php_out=./generated \
  --grpc_out=./generated \
  ./proto/shortener.proto

Or use /usr/bin/grpc_php_plugin:

docker run -u $(id -u):$(id -g) -v `pwd`:/app \
  ghcr.io/igancev/protoc-php-plugins:latest protoc \
  --plugin=protoc-gen-grpc=/usr/bin/grpc_php_plugin \
  --php_out=./generated \
  --grpc_out=./generated \
  ./proto/shortener.proto

About

Docker image with compiled binary protoc, grpc_php_plugin and downloaded protoc-gen-php-grpc (plugin by Roadrunner project)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages