diff options
author | ZhouyihaiDing <ddyihai@google.com> | 2017-11-05 18:25:54 -0800 |
---|---|---|
committer | ZhouyihaiDing <ddyihai@google.com> | 2017-11-06 21:07:47 +0000 |
commit | 5253720853c0bf999149b5fa2cbe122030ec6ed8 (patch) | |
tree | da0166b489a01c2c1062310e46e7e6dc3ea3e487 /examples/php/greeter_client.php | |
parent | 05547052d0394224515ac43364ce3a80467a5edc (diff) |
php example
Diffstat (limited to 'examples/php/greeter_client.php')
-rw-r--r-- | examples/php/greeter_client.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/php/greeter_client.php b/examples/php/greeter_client.php index 981319a451..bb94a08527 100644 --- a/examples/php/greeter_client.php +++ b/examples/php/greeter_client.php @@ -17,12 +17,14 @@ * */ +// php:generate protoc --proto_path=./../protos --php_out=./ --grpc_out=./ --plugin=protoc-gen-grpc=./../../bins/opt/grpc_php_plugin ./../protos/helloworld.proto + require dirname(__FILE__).'/vendor/autoload.php'; -// The following includes are needed when using protobuf 3.1.0 -// and will suppress warnings when using protobuf 3.2.0+ -@include_once dirname(__FILE__).'/helloworld.pb.php'; -@include_once dirname(__FILE__).'/helloworld_grpc_pb.php'; +@include_once dirname(__FILE__).'/Helloworld/GreeterClient.php'; +@include_once dirname(__FILE__).'/Helloworld/HelloReply.php'; +@include_once dirname(__FILE__).'/Helloworld/HelloRequest.php'; +@include_once dirname(__FILE__).'/GPBMetadata/Helloworld.php'; function greet($name) { |