Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/grpc/src/php/ext/grpc/README.md

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/grpc/src/php/ext/grpc/LICENSE ('k') | third_party/grpc/src/php/ext/grpc/byte_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/src/php/ext/grpc/README.md
diff --git a/third_party/grpc/src/php/ext/grpc/README.md b/third_party/grpc/src/php/ext/grpc/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..6e1cb2002f5c96e1fbb57c8189f06205acc3a315
--- /dev/null
+++ b/third_party/grpc/src/php/ext/grpc/README.md
@@ -0,0 +1,67 @@
+gRPC PHP Extension
+==================
+
+# Requirements
+
+ * PHP 5.5+
+ * [gRPC core library](https://github.com/grpc/grpc) 0.11.0
+
+# Installation
+
+## Install PHP 5
+
+```
+$ sudo apt-get install git php5 php5-dev php-pear unzip
+```
+
+## Compile gRPC Core Library
+
+Clone the gRPC source code repository
+
+```
+$ git clone https://github.com/grpc/grpc.git
+```
+
+Build and install the gRPC C core libraries
+
+```sh
+$ cd grpc
+$ git checkout --track origin/release-0_11
+$ git pull --recurse-submodules && git submodule update --init --recursive
+$ make
+$ sudo make install
+```
+
+Note: you may encounter a warning about the Protobuf compiler `protoc` 3.0.0+ not being installed. The following might help, and will be useful later on when we need to compile the `protoc-gen-php` tool.
+
+```sh
+$ cd grpc/third_party/protobuf
+$ sudo make install # 'make' should have been run by core grpc
+```
+
+## Install the gRPC PHP extension
+
+Quick install
+
+```sh
+$ sudo pecl install grpc
+```
+
+Note: before a stable release, you may need to do
+
+```sh
+$ sudo pecl install grpc-beta
+```
+
+OR
+
+Compile from source
+
+```sh
+$ # from grpc
+$ cd src/php/ext/grpc
+$ phpize
+$ ./configure
+$ make
+$ sudo make install
+```
« no previous file with comments | « third_party/grpc/src/php/ext/grpc/LICENSE ('k') | third_party/grpc/src/php/ext/grpc/byte_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698