Install missing grpc_php_plugin-protoc-plugin

grpc_php_plugin protoc plugin

You need the grpc_php_plugin to generate the PHP client stub classes. This plugin works with the main protoc binary to generate classes that you can import into your project.

Find latest releases here: https://github.com/grpc/grpc/releases

You can build grpc_php_plugin with cmake:

# git clone -b v1.51.3 https://github.com/grpc/grpc
# cd grpc
# git submodule update --init
# mkdir -p cmake/build
# cd cmake/build
# cmake ../..
# make protoc grpc_php_plugin
# cp /root/grpc/cmake/build/grpc_php_plugin /usr/local/bin/

 

The commands above will make protoc and grpc_php_plugin available in cmake/build/third_party/protobuf/protoc and cmake/build/grpc_php_plugin.

  • grpc_plugin, grpc_php_plugin, grpc_php_plugin protoc plugin
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to upgrade PHP to 7.4 in centos 7?

Enter the following commands on the terminal to upgrade PHP:      1 . To install the latest...

Protocol Buffer Compiler Installation

How to install the protocol buffer compiler. While not mandatory, gRPC applications often...

How to Install Go on CentOS 7

Go, often referred to as golang is a modern open-source programming language created by Google....

Configure gRPC for go and protoc

Quick start This guide gets you started with gRPC in Go with a simple working example....