1. 下载 composer-setup.php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
2. php 执行安装
php composer-setup.php
3. 添加全局执行的命令
mv composer.phar /usr/local/bin/composer
4. 查看安装成功没
composer -V
5.1 全局更换阿里云的源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
5.2 临时更换成阿里的源
cd 项目目录
composer config repo.packagist composer https://mirrors.aliyun.com/composer/
扫码在手机查看
您没有登录或者此篇文章不允许评论哟~~
暂无评论