From 6485f7eef3091673c7cf2f5687b711e42caad09b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 25 Oct 2012 15:17:35 +0200 Subject: [PATCH] Add setup instructions --- doc/00-intro.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/00-intro.md b/doc/00-intro.md index 7ab7b262b..ccf74ef18 100644 --- a/doc/00-intro.md +++ b/doc/00-intro.md @@ -74,7 +74,7 @@ You can run these commands to easily access `composer` from anywhere on your sys $ curl -s https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer -Then, just run `composer` in order to run composer +Then, just run `composer` in order to run Composer instead of `php composer.phar`. ### Using Composer @@ -86,7 +86,15 @@ This will download monolog into the `vendor/monolog/monolog` directory. ## Installation - Windows -### Downloading the Composer Executable +### Using the Installer + +This is the easiest way to get Composer set up on your machine. + +Download and run [Composer-Setup.exe](http://getcomposer.org/Composer-Setup.exe), +it will install the latest Composer version and set up your PATH so that you can +just call `composer` from any directory in your command line. + +### Manual Installation Change to a directory on your `PATH` @@ -96,18 +104,18 @@ Change to a directory on your `PATH` Create a new `.BAT` file alongside composer C:\bin>notepad composer.bat - + Paste the following: @ECHO OFF SET composerScript=composer.phar php %~dp0%composerScript% %* - + Save the file. Close your current terminal. Test usage with a new terminal: C:\Users\username>composer -V Composer version 27d8904 - + C:\Users\username> ## Autoloading