https://protobuf.dev/programming-guides/proto3/
- Download protobuf prebuilt compiler from https://github.com/protocolbuffers/protobuf/releases
- Unzip it to the
./protocdirectory - make sure that
./protoc/bin/protocis executable - run
./build_grpc_plugin.shto enable grpc support (this may take about 10 minutes)
- add/modify files in
./proto_filesdirectory - run
./generate.sh - commit the changes (
git add generated/*will be executed automatically)
./proto_files- the place where all *.proto files should be stored./generated- the protoc keeps generated php/go files here./protoc- the directory where the prebuilt protoc compiler is stored./tools- the directory where the additional tools are stored. Currently onlyconstants2enum.phpwhich converts protobuf generated constants to php 8.x enums