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

A brief tutorial on installing Composer

藏色散人
Release: 2020-04-17 16:53:58
forward
2175 people have browsed it

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/
Copy after login

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
Copy after login

2. Execute the installation:

php composer-setup.php
Copy after login

3. Complete the installation:

mv composer.phar  /usr/local/bin/composer
Copy after login

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!

Related labels:
source:cloud.tencent.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template