diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2017-05-17 13:02:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 13:02:10 -0700 |
commit | 53c2bbdeb716f947a63a8358b76540d24f9a79b2 (patch) | |
tree | f438667df9fa1b9005bbcdbadde931a0ee33862d /src | |
parent | 90224ba893324fad358934eb2a4487e33c6a3baf (diff) | |
parent | 6e589c6a15da708a2081b1955170393321327878 (diff) |
Merge pull request #11173 from stanley-cheung/php-split-protobuf-dep
PHP: stop requiring google/protobuf PHP implementation
Diffstat (limited to 'src')
-rw-r--r-- | src/php/README.md | 22 | ||||
-rw-r--r-- | src/php/tests/qps/composer.json | 3 |
2 files changed, 24 insertions, 1 deletions
diff --git a/src/php/README.md b/src/php/README.md index f9f93ba815..90c8cb386a 100644 --- a/src/php/README.md +++ b/src/php/README.md @@ -174,6 +174,28 @@ $ sudo make install ``` +### Protobuf Runtime library + +There are two protobuf runtime libraries to choose from. They are idenfical in terms of APIs offered. + +1. C implementation (for better performance) + +``` sh +$ sudo pecl install protobuf +``` + +2. PHP implementation (for easier installation) + + +Add this to your `composer.json` file: + +``` + "require": { + "google/protobuf": "^v3.3.0" + } +``` + + ### PHP Protoc Plugin You need the gRPC PHP protoc plugin to generate the client stub classes. diff --git a/src/php/tests/qps/composer.json b/src/php/tests/qps/composer.json index 0fc87098f5..8c1e7b6c74 100644 --- a/src/php/tests/qps/composer.json +++ b/src/php/tests/qps/composer.json @@ -1,7 +1,8 @@ { "minimum-stability": "dev", "require": { - "grpc/grpc": "dev-master" + "grpc/grpc": "dev-master", + "google/protobuf": "^v3.3.0" }, "autoload": { "psr-4": { |