1
0
Fork 0

Windows installation guide

Downloading via file_get_contents & creation of BAT file
pull/1020/head
Daniel Jackson 2012-08-23 18:09:20 +02:00
parent 27d8904abe
commit 53b20367ec
1 changed files with 27 additions and 1 deletions

View File

@ -42,7 +42,7 @@ which describes the project's dependencies.
We are simply stating that our project requires some `monolog/monolog` package,
any version beginning with `1.0`.
## Installation
## Installation - *nix
### Downloading the Composer Executable
@ -84,6 +84,32 @@ Next, run the `install` command to resolve and download dependencies:
This will download monolog into the `vendor/monolog/monolog` directory.
## Installation - Windows
### Downloading the Composer Executable
Change to a directory on your `PATH`
C:\Users\username>cd C:\bin
C:\bin>php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
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
Besides downloading the library, Composer also prepares an autoload file that's