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