|
|
5 vuotta sitten | |
|---|---|---|
| .. | ||
| echo | 6 vuotta sitten | |
| route_guide | 5 vuotta sitten | |
| .gitignore | 10 vuotta sitten | |
| README.md | 5 vuotta sitten | |
| composer.json | 5 vuotta sitten | |
| greeter_client.php | 5 vuotta sitten | |
| greeter_proto_gen.sh | 5 vuotta sitten | |
| run_greeter_client.sh | 8 vuotta sitten | |
This requires php >= 5.5, pecl, composer
Install the grpc extension
$ [sudo] pecl install grpc
Install the protoc compiler plugin grpc_php_plugin
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc
$ cd grpc
$ make grpc_php_plugin
Install the grpc/grpc composer package
$ cd examples/php
$ composer install
Please follow the instruction in Node to run the server
$ cd examples/node
$ npm install
$ cd dynamic_codegen or cd static_codegen
$ node greeter_server.js
Generate proto files and run the client
$ cd examples/php
$ ./greeter_proto_gen.sh
$ ./run_greeter_client.sh
You can find a more detailed tutorial in gRPC Basics: PHP