tree: 9298d2feb5e1164a223e9586c01485aaf6efaa85 [path history] [tgz]
  1. byte_buffer.c
  2. byte_buffer.h
  3. call.c
  4. call.h
  5. channel.c
  6. channel.h
  7. completion_queue.c
  8. completion_queue.h
  9. config.m4
  10. credentials.c
  11. credentials.h
  12. CREDITS
  13. LICENSE
  14. package.xml
  15. php_grpc.c
  16. php_grpc.h
  17. README.md
  18. server.c
  19. server.h
  20. server_credentials.c
  21. server_credentials.h
  22. timeval.c
  23. timeval.h
src/php/ext/grpc/README.md

gRPC PHP Extension

Requirements

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 Protocol Buffers compiler (protoc)

$ # from grpc
$ git checkout --track origin/release-0_9
$ git pull --recurse-submodules && git submodule update --init --recursive
$ cd third_party/protobuf
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install

Build and install the gRPC C core library

$ # from grpc
$ make
$ sudo make install

Install the gRPC PHP extension

Quick install

$ sudo pecl install grpc

Note: before a stable release, you may need to do

$ sudo pecl install grpc-0.5.1

OR

Compile from source

$ # from grpc
$ cd src/php/ext/grpc
$ phpize
$ ./configure
$ make
$ sudo make install