From 53b20367ec269b1c3c4e91af075a08ba27945786 Mon Sep 17 00:00:00 2001 From: Daniel Jackson Date: Thu, 23 Aug 2012 18:09:20 +0200 Subject: [PATCH] Windows installation guide Downloading via file_get_contents & creation of BAT file --- doc/00-intro.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/doc/00-intro.md b/doc/00-intro.md index 12a1828fd..c3cea7c61 100644 --- a/doc/00-intro.md +++ b/doc/00-intro.md @@ -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