安装&卸载 composer

安装 composer:
	curl -sS https://getcomposer.org/installer | php
	mv composer.phar /usr/local/bin/composer

配置国内镜像:
	composer config -g repo.packagist composer https://packagist.phpcomposer.com

升级 composer:
	composer self-update

卸载 composer:
	1.删除 composer 相关文件,以下命令,涉及到的路径下的文件(根据自己需要考虑应不应该删除)
		composer config -l -g | grep "home|dir" -E

	2.直接删除 composer 命令文件
		rm $(which composer)

参考文章:
	https://blog.csdn.net/yangbbenyang/article/details/52457666

 

你可能感兴趣的:(服务器,php)