Skip to content

Commit

Permalink
Simplify PHP installation
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Mar 1, 2016
1 parent f657a50 commit df1e05a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 44 deletions.
23 changes: 19 additions & 4 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2016-02-24</date>
<date>2016-03-01</date>
<time>16:06:07</time>
<version>
<release>0.8.0</release>
<api>0.8.0</api>
<release>0.9.0</release>
<api>0.9.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license>BSD</license>
<notes>
- Simplify gRPC PHP installation #4517
- Increase unit test code coverage #5225
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -969,5 +969,20 @@ Update to wrap gRPC C Core version 0.10.0
- Simplify gRPC PHP installation #4517
</notes>
</release>
<release>
<version>
<release>0.9.0</release>
<api>0.9.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2016-03-01</date>
<license>BSD</license>
<notes>
- Increase unit test code coverage #5225
</notes>
</release>
</changelog>
</package>
36 changes: 0 additions & 36 deletions src/php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,45 +33,12 @@ $ sudo mv phpunit.phar /usr/local/bin/phpunit

## Quick Install

**Linux (Debian):**

Add [Debian jessie-backports][] to your `sources.list` file. Example:

```sh
echo "deb http:https://http.debian.net/debian jessie-backports main" | \
sudo tee -a /etc/apt/sources.list
```

Install the gRPC Debian package

```sh
sudo apt-get update
sudo apt-get install libgrpc-dev
```

Install the gRPC PHP extension

```sh
sudo pecl install grpc-beta
```

**Mac OS X:**

Install [homebrew][]. Example:

```sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```

Install the gRPC core library and the PHP extension in one step

```sh
$ curl -fsSL https://goo.gl/getgrpc | bash -s php
```

This will download and run the [gRPC install script][] and compile the gRPC PHP extension.


## Build from Source

Clone this repository
Expand Down Expand Up @@ -297,7 +264,4 @@ Connect to `localhost/math_client.php` in your browser, or run this from command
$ curl localhost/math_client.php
```

[homebrew]:http:https://brew.sh
[gRPC install script]:https://raw.githubusercontent.com/grpc/homebrew-grpc/master/scripts/install
[Node]:https://github.com/grpc/grpc/tree/master/src/node/examples
[Debian jessie-backports]:http:https://backports.debian.org/Instructions/
23 changes: 19 additions & 4 deletions templates/package.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2016-02-24</date>
<date>2016-03-01</date>
<time>16:06:07</time>
<version>
<release>0.8.0</release>
<api>0.8.0</api>
<release>0.9.0</release>
<api>0.9.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license>BSD</license>
<notes>
- Simplify gRPC PHP installation #4517
- Increase unit test code coverage #5225
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -155,5 +155,20 @@
- Simplify gRPC PHP installation #4517
</notes>
</release>
<release>
<version>
<release>0.9.0</release>
<api>0.9.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<date>2016-03-01</date>
<license>BSD</license>
<notes>
- Increase unit test code coverage #5225
</notes>
</release>
</changelog>
</package>

0 comments on commit df1e05a

Please sign in to comment.