Install composer:

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Copy the code

Configuring a domestic mirror:

composer config -g repo.packagist composer https://packagist.phpcomposer.com
Copy the code

Upgrade composer:

composer self-update
Copy the code

Uninstall the composer:

1. Delete the composer related documents, the following command, involved in the path of files (should according to their own needs to consider deleting) composer config - l - g | grep "home | dir" - E 2. Rm $(which composer)Copy the code

Refer to the article: blog.csdn.net/yangbbenyan…