1
0
Fork 0

Point to docs for install instructions, fixes #2336

pull/2316/merge
Jordi Boggiano 2013-10-16 14:10:42 +02:00
parent 6ce0bf7cbf
commit d21994bdbf
1 changed files with 4 additions and 12 deletions

View File

@ -16,10 +16,10 @@ Installation / Usage
$ curl -sS https://getcomposer.org/installer | php $ curl -sS https://getcomposer.org/installer | php
``` ```
2. Create a composer.json defining your dependencies. Note that this example is 2. Create a composer.json defining your dependencies. Note that this example is
a short version for applications that are not meant to be published as packages a short version for applications that are not meant to be published as packages
themselves. To create libraries/packages please read the [guidelines](https://packagist.org/about). themselves. To create libraries/packages please read the
[documentation](http://getcomposer.org/doc/02-libraries.md).
``` json ``` json
{ {
@ -47,17 +47,9 @@ You can now run Composer by executing the `bin/composer` script: `php /path/to/c
Global installation of Composer (manual) Global installation of Composer (manual)
---------------------------------------- ----------------------------------------
Since Composer works with the current working directory it is possible to install it Follow instructions [in the documentation](http://getcomposer.org/doc/00-intro.md#globally)
in a system wide way.
1. Change into a directory in your path like `cd /usr/local/bin` Global installation of Composer (for OSX/homebrew)
2. Get Composer `curl -sS https://getcomposer.org/installer | php`
3. Make the phar executable `chmod a+x composer.phar`
4. Change into a project directory `cd /path/to/my/project`
5. Use Composer as you normally would `composer.phar install`
6. Optionally you can rename the composer.phar to composer to make it easier
Global installation of Composer (via homebrew)
---------------------------------------------- ----------------------------------------------
Composer is part of the homebrew-php project. Composer is part of the homebrew-php project.