Install Composer via Composer Mirror
Make sure that PHP is installed correctly.
Global Installation
The global installation is to install composer PATH under the path contained in the system environment variable, and then execute the command directly in the command composer -line window.
Mac or Linux system: open a command-line window and execute the following command:
Curl-ss Http://install.phpcomposer.com/installer | sudo php----install-dir=/usr/local/bin--filename=composer
Windows System: Please execute the following command at the command line:
mkdir c:\bincd c:\binphp -r "ReadFile (' Http://install.phpcomposer.com/installer ');" | phpecho @php "%~dp0composer.phar" %*>composer.bat
c:\bin Path join path Environment variables. Finally reopen a command-line window try execution composer--version See if the correct output version number, for example:.
Composer version 1.0-dev (72cd6afdfce16f36a9fd786bc1b2f32b851e764f) 2015-12-28 17:35:19
tip: Don't forget to do it oftencomposer selfupdateto keep Composer has been the latest version Oh!
This article is from the "Day South Side" blog, please make sure to keep this source http://phpnan.blog.51cto.com/2641199/1743961
The best way to install composer Windows version