Install composer under Linux

Source: Internet
Author: User

Verify that you have PHP installed before the installation step starts

1. Create a folder and enter

mkdir/]# cd composer/

2. Download the composer installer to the current directory

" copy (' Https://getcomposer.org/installer ', ' composer-setup.php '); "

Browse the current directory after execution will appear composer-setup.php? installation file, indicating that the download was successful.

3. Perform the Setup program

[[email protected]/]# php composer-setup.php?

4. Delete the installation file

" unlink (' composer-setup.php '); "?

5. Set composer Global variables

[Email protected] composer]# Vim/etc/profile

Add code to the last line

Export path= "$PATH:/home/composer"?

Composer-v appears after saving in any file directory input

Description Composer Installation Succeeded

6. Configure the Mirror zone to domestic

Composer Config-g Repo.packagist composer https://packagist.phpcomposer.com

Install composer under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.