1 安装composer
https://www.jianshu.com/p/fd1b53df3f4b
2 修改为国内镜像
4 安装homebrew
https://www.jianshu.com/p/4e80b42823d5
改为国内镜像:
https://www.jianshu.com/p/5f1efab5a40a
3 安装mcrypt
先使用brew安装依赖软件:autoconf和mcrypt
首先去php官网下载php对应版本的源码,安装php-mcrypt:https://blog.youkuaiyun.com/nohaoye/article/details/47692907