From 1ee715ead5401d2914a4a92011390060ec0afbba Mon Sep 17 00:00:00 2001 From: Wil Moore III Date: Wed, 7 Mar 2012 22:41:29 -0700 Subject: [PATCH] updated intro and basic-usage to reflect new --install-dir option --- doc/00-intro.md | 5 +++++ doc/01-basic-usage.md | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/00-intro.md b/doc/00-intro.md index 2ff756684..1169a06a0 100644 --- a/doc/00-intro.md +++ b/doc/00-intro.md @@ -45,6 +45,11 @@ composer: This will just check a few PHP settings and then download `composer.phar` to your working directory. This file is the composer binary. +You can install composer to a specific directory by using the `--install-dir` +option and providing a target directory (it can be an absolute or relative path): + + $ curl -s http://getcomposer.org/installer | php -- --install-dir=bin + After that we run the command for installing all dependencies: $ php composer.phar install diff --git a/doc/01-basic-usage.md b/doc/01-basic-usage.md index 550e887fe..8056ae713 100644 --- a/doc/01-basic-usage.md +++ b/doc/01-basic-usage.md @@ -18,6 +18,11 @@ You can place this file anywhere you wish. If you put it in your `PATH`, you can access it globally. On unixy systems you can even make it executable and invoke it without `php`. +You can install composer to a specific directory by using the `--install-dir` +option and providing a target directory (it can be an absolute or relative path): + + $ curl -s http://getcomposer.org/installer | php -- --install-dir=bin + To check if composer is working, just run the PHAR through `php`: $ php composer.phar @@ -178,4 +183,4 @@ This can be useful for autoloading classes in a test suite, for example. that one, you can just include `vendor/.composer/autoload_namespaces.php`, which returns an associative array mapping namespaces to directories. -← [Intro](00-intro.md) | [Libraries](02-libraries.md) → \ No newline at end of file +← [Intro](00-intro.md) | [Libraries](02-libraries.md) →