From 903212196f9fc8ad5b7a47872ecccd83724c6040 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 19 Oct 2018 08:21:17 -0400 Subject: [PATCH 1/2] change code in php.md --- docs/quickstart/php.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/quickstart/php.md b/docs/quickstart/php.md index 3595e820..f5f06276 100644 --- a/docs/quickstart/php.md +++ b/docs/quickstart/php.md @@ -46,10 +46,11 @@ $ sudo yum install php56w php56w-devel php-pear phpunit gcc zlib-devel **Install PHP and PECL on Mac:** ```sh -$ brew install homebrew/php/php56-grpc +$ brew install homebrew/homebrew-core/php@5.6 $ curl -O http://pear.php.net/go-pear.phar $ sudo php -d detect_unicode=0 go-pear.phar ``` +(For Mac, set Installation base to /usr/local instead of /usr for pear) **Install Composer (Linux or Mac):** From 03cf9d60ffbdaafcef2c1abdc037f7a2a8a39563 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 19 Oct 2018 16:31:15 -0400 Subject: [PATCH 2/2] changed php installation instruction on macOs --- docs/quickstart/php.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/quickstart/php.md b/docs/quickstart/php.md index f5f06276..f8e99c78 100644 --- a/docs/quickstart/php.md +++ b/docs/quickstart/php.md @@ -46,11 +46,13 @@ $ sudo yum install php56w php56w-devel php-pear phpunit gcc zlib-devel **Install PHP and PECL on Mac:** ```sh -$ brew install homebrew/homebrew-core/php@5.6 +$ brew install homebrew/homebrew-core/php@7.1 +$ echo 'export PATH="/usr/local/opt/php@7.1/bin:$PATH"' >> ~/.zshrc +$ echo 'export PATH="/usr/local/opt/php@7.1/sbin:$PATH"' >> ~/.zshrc +$ source ~/.zshrc $ curl -O http://pear.php.net/go-pear.phar $ sudo php -d detect_unicode=0 go-pear.phar ``` -(For Mac, set Installation base to /usr/local instead of /usr for pear) **Install Composer (Linux or Mac):**