Home > Article > Development Tools > A brief tutorial on installing Composer
Composer Mirror usage help
Switch mirror pointing:
composer config -g repos.packagist composer https://mirrors.cloud.tencent.com/composer/
Composer installation brief tutorial:
1. Download the installation script and choose one of the following methods:
1、php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" 2、curl -sS https://install.phpcomposer.com/installer | php
2. Execute the installation:
php composer-setup.php
3. Complete the installation:
mv composer.phar /usr/local/bin/composer
The above is the detailed content of A brief tutorial on installing Composer. For more information, please follow other related articles on the PHP Chinese website!