- install php7 in mac OS X by homebrew:
brew install php@7.1
- install peal on Mac OS X
- install composer on Mac OS X
- install grpc extention for php:
sudo pecl install grpc
- this will result
extension="grpc.so"
in/usr/local/etc/php/7.1/php.ini
- this will result
- install protobuf by homebrew:
brew install protobuf
- use composer to download dependencies
make install
- generate grpc php stub:
make gen_grpc_php
- run the client, make sure the grpc server is running locally
make run_greeter_client