Plugins to generate code from .proto files in Windows
cd C:\protoc-windows-gen-plugins
protoc -I proto/ --php_out=proto --grpc_out=proto --plugin=protoc-gen-grpc=./grpc_php_plugin.exe example.proto
https://grpc.io/docs/languages/php/quickstart/
- Download and install http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20200602.exe
- Open installed Msys2
- Update packages:
pacman -Su
- Install grpc-plugins:
pacman -S mingw-w64-x86_64-grpc
- Your plugins are here: C:\msys64\mingw64\bin
- You can just download http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-grpc-1.29.1-1-any.pkg.tar.zst
- Open it with zstd plugin http://facebook.github.io/zstd/