使用homebrew安装php,后面加上安装参数。
brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap --enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php
可是装完后查看安装参数都是homebrew的默认参数。

如何安装自定义的参数,我百度了下好像别人也都是我这么做的。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可以单独安装扩展
比如:
brew search php-redis
列出相应的扩展
brew install /xxx/xxx/php-redis