转自:https://www.cnblogs.com/kevinws/p/6801991.html
在命令窗口执行:
brew install composer
安装完毕之后,输入 composer 命令可查看是否安装成功
Packagist 镜像使用方法
composer config -g repo.packagist composer https://packagist.phpcomposer.com
具体可查看:https://pkg.phpcomposer.com/
以安装 THINKPHP5.0为例,在命令行里输入
composer create-project topthink/think tp5 --prefer-dist
Google Chrome
Windows 10