Fork me on Baidu

Linux下全局安装composer方法

1、下载composer
curl -sS https://getcomposer.org/installer | php
2、将composer.phar文件移动到bin目录以便全局使用composer命令
mv composer.phar /usr/local/bin/composer
3、切换国内源
composer config -g repo.packagist composer https://packagist.phpcomposer.com
posted @ 2021-08-13 17:11  consideration  阅读(50)  评论(0编辑  收藏  举报