s1lver/grpc-php-plugin-binary

grpc_php_plugin binary for protoc utils

1.0.0 2023-05-23 21:39 UTC

This package is auto-updated.

Last update: 2024-12-25 14:50:53 UTC


README

Latest Stable Version Total Downloads

Binary grpc_php_plugin for protoc utils

Install

composer require s1lver/grpc-php-plugin-binary "^1.0.0"

or add

"s1lver/grpc-php-plugin-binary": "^1.0.0"

How to use

cp /your_repo/vendor/bin/grpc_php_plugin /usr/local/bin/grpc_php_plugin

protoc -I . \
       --php_out=your/path \
       --grpc_out=your/path \
       --plugin=protoc-gen-grpc=`which grpc_php_plugin` \
       your/path/proto.proto 

How to compile

https://github.com/grpc/grpc/tree/v1.55.0/src/php#grpc_php_plugin-protoc-plugin

git clone -b v1.53.0 https://github.com/grpc/grpc
cd ./grpc/
git submodule update --init
mkdir -p cmake/build
cd cmake/build
cmake ../..
make protoc grpc_php_plugin

Version matching