1 # gRPC PHP Quick Start Example
6 This requires `php` >= 5.5, `pecl`, `composer`
10 - Install the `grpc` extension
13 $ [sudo] pecl install grpc
16 - Install the `protoc` compiler plugin `grpc_php_plugin`
19 $ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
21 $ make grpc_php_plugin
24 - Install the `grpc/grpc` composer package
35 Please follow the instruction in [Node][] to run the server
39 $ cd dynamic_codegen or cd static_codegen
40 $ node greeter_server.js
43 - Generate proto files and run the client
47 $ ./greeter_proto_gen.sh
48 $ ./run_greeter_client.sh
53 You can find a more detailed tutorial in [gRPC Basics: PHP][]
55 [Node]:https://github.com/grpc/grpc/tree/master/examples/node
56 [gRPC Basics: PHP]:https://grpc.io/docs/tutorials/basic/php.html