Home  >  Article  >  Development Tools  >  A brief tutorial on installing Composer

A brief tutorial on installing Composer

藏色散人
藏色散人forward
2020-04-17 16:53:582144browse

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!

Statement:
This article is reproduced at:cloud.tencent.com. If there is any infringement, please contact admin@php.cn delete