|
|
@ -46,6 +46,8 @@ any version beginning with `1.0`.
|
|
|
|
|
|
|
|
|
|
|
|
### Downloading the Composer Executable
|
|
|
|
### Downloading the Composer Executable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Locally
|
|
|
|
|
|
|
|
|
|
|
|
To actually get Composer, we need to do two things. The first one is installing
|
|
|
|
To actually get Composer, we need to do two things. The first one is installing
|
|
|
|
Composer (again, this mean downloading it into your project):
|
|
|
|
Composer (again, this mean downloading it into your project):
|
|
|
|
|
|
|
|
|
|
|
@ -61,10 +63,19 @@ option and providing a target directory (it can be an absolute or relative path)
|
|
|
|
|
|
|
|
|
|
|
|
$ curl -s http://getcomposer.org/installer | php -- --install-dir=bin
|
|
|
|
$ curl -s http://getcomposer.org/installer | php -- --install-dir=bin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Globally
|
|
|
|
|
|
|
|
|
|
|
|
You can place this file anywhere you wish. If you put it in your `PATH`,
|
|
|
|
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
|
|
|
|
you can access it globally. On unixy systems you can even make it
|
|
|
|
executable and invoke it without `php`.
|
|
|
|
executable and invoke it without `php`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can run these commands to easily acces `composer` from anywhere on your system:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ curl -s http://getcomposer.org/installer | php
|
|
|
|
|
|
|
|
$ sudo mv composer.phar /usr/local/bin/composer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Then, just run `composer` in order to run composer
|
|
|
|
|
|
|
|
|
|
|
|
### Using Composer
|
|
|
|
### Using Composer
|
|
|
|
|
|
|
|
|
|
|
|
Next, run the `install` command to resolve and download dependencies:
|
|
|
|
Next, run the `install` command to resolve and download dependencies:
|
|
|
|