The best way to install composer Windows version

Source: Internet
Author: User

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

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.