Skip to content

Commit

Permalink
Merge pull request codeguy#590 from alimac/565-composer-global
Browse files Browse the repository at this point in the history
Clarify local vs. global Composer installation
  • Loading branch information
philsturgeon committed Sep 1, 2015
2 parents c7a2e63 + 199a6b6 commit d2b81f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions _posts/04-02-01-Composer-and-Packagist.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ There are already a lot of PHP libraries that are compatible with Composer, read

### How to Install Composer

You can install Composer locally (in your current working directory; though this is no longer recommended) or globally
(e.g. /usr/local/bin). Let's assume you want to install Composer locally. From your project's root directory:
You can install Composer locally (in your current working directory) or globally (e.g. /usr/local/bin, recommended).
Let's assume you want to install Composer globally:

{% highlight console %}
curl -s https://getcomposer.org/installer | php
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
{% endhighlight %}

<strong>Note:</strong> If the above fails due to permissions, run the `mv` line again with `sudo`.

This will download `composer.phar` (a PHP binary archive). You can run this with `php` to manage your project
dependencies.
<strong>Please Note:</strong> If you pipe downloaded code directly into an interpreter, please read the
Expand Down

0 comments on commit d2b81f6

Please sign in to comment.