Docker image for compiling Google's Protocol Buffers into PHP classes.
Image use allegro/php-protobuf to compile a proto file instead of official protobuf package which don't have support for proto2.
This image support compilation for proto2 and proto3.
Currently, the only possible parameter is the path to proto file. The proto file should be in the directory from which you run the image.
docker run -v `pwd`:/defs michakpl/php-protoc example.proto
Docker will produce the directory with proto compiled to PHP classes.
- Support more options in parameters
- Optimize size of image
- allegro/php-protobuf (Allegro)