您的位置:首页 > 编程语言 > PHP开发

MAC OS中使用brew安装php拓展

2017-08-03 23:39 513 查看

MAC OS中brew安装的PHP使用brew安装拓展

PHP拓展(可装可不装,brew拓展方便)

MongoDb拓展(前面安装的是数据库)

安装前先search

brew search mongo


PHP56 安装 MongoDb拓展

sphp 56
brew install php56-mongo


PHP71 安装 MongoDb拓展

sphp 71
brew install php71-mongodb


重启
sudo apachectl -k restart
,然后
http://localhost
查看拓展开启没有

PHP各个版本安装xdebug拓展

PHP56 安装 xdebug拓展

sphp 56
brew install php56-xdebug


PHP71 安装 xdebug拓展

sphp 71
brew install php71-xdebug


重启
sudo apachectl -k restart
,然后
http://localhost
查看拓展开启没有

PHP安装YAML,symfony框架使用速度提高x5

PHP56 安装 YAML拓展

sphp 56
brew install php56-yaml


PHP71 安装 YAML拓展

sphp 71
brew install php71-yaml


安装 OPcache and APCu(缓存机制,加快PHP的编译速度)

在PHP56里面安装

$ sphp 56
$ brew install php56-opcache
$ brew install php56-apcu


在PHP71里面安装

$ sphp 71
$ brew install php71-opcache
$ brew install php71-apcu


重启
sudo apachectl -k restart
,然后
http://localhost
查看拓展开启没有

原文地址:http://biyongyao.com/archives/166
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: