Linux下全局安装composer方法

Author Avatar
Weining Jan 17, 2019
//下载composer
curl -sS https://getcomposer.org/installer | php//将composer.phar文件移动到bin目录以便全局使用composer命令
mv composer.phar /usr/local/bin/composer//切换国内源
composer config -g repo.packagist composer https://packagist.laravel-china.org
composer create-project think\topthink
composer require topthink/think-captcha