1. Need to see what kind of API provides the server. If JSON REST, the gRPC will not work. gRPC is a separate Protocol that needs to support both the client and the server to be able to interact.
2. If you want to communicate with the remote server, you only need the client. If you want to be for someone with a server that provides the gRPC API, you need a server. In PHP you can't do gRPC server, and apparently so offer node.js. Try to raise the server on Linux, instead of openserver. Then there will be the commands described in the dock, and generally the development will be much easier.
3. Simple docks at gRPC not seen.
In addition to the gRPC, you will have to deal with protobuf
, as the gRPC is based on it. It also needs to be installed either as a module to PHP, either as a composer dependency. In addition, the remote server must grant the proto file on the basis of which you will do gRPC client. This file must be compiled with protoc (the protobuf compiler) using a special plug-in to it - grpc_php_plugin. The result is a set of PHP scripts that implement gRPC client to access the API of the remote server. Here are the scripts you will use in your scripts to communicate with the server.