Ubuntu/Debian 系统 安装PHP & PECL
sudo apt-get install php7.0 php7.0-dev php-pear phpunit
#或者
sudo apt-get install php php-dev php-pear phpunit
CentOS/RHEL 7 系统 安装PHP & PECL
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install php56w php56w-devel php-pear phpunit gcc zlib-devel
Mac 系统 安装PHP & PECL
brew install php
curl -O https://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
网友评论