Composer: Difference between revisions
→Notes: rephrase |
m swap category order |
||
(2 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
Make sure you have PHP (CLI version) installed. If you're the only developer on the machine, you may want to create a folder called <span class="shell">~/bin</span> and put the generated composer file there. I usually rename mine to simply composer and then make it only user executable. By default it becomes other-executable. This way I can just invoke <code>$ composer update</code> from anywhere. Feel free to make it available to others by moving it to <span class="shell">/usr/local/bin</span>. | Make sure you have PHP (CLI version) installed. If you're the only developer on the machine, you may want to create a folder called <span class="shell">~/bin</span> and put the generated composer file there. I usually rename mine to simply composer and then make it only user executable. By default it becomes other-executable. This way I can just invoke <code>$ composer update</code> from anywhere. Feel free to make it available to others by moving it to <span class="shell">/usr/local/bin</span>. | ||
== Notes == | == Notes == | ||
Line 27: | Line 24: | ||
Be sure to run <code>$ composer self-update</code> often because numerous updates are occurring on a daily basis. | Be sure to run <code>$ composer self-update</code> often because numerous updates are occurring on a daily basis. | ||
== References == | |||
<div class="references-small"><references /></div> | |||
[[Category:Development]] | |||
[[Category:Web development]] | [[Category:Web development]] |
Latest revision as of 13:20, 3 May 2016
Composer is a dependency manager for PHP.
Installation[1]
- Last tested on Ubuntu 14.04.2 LTS (trusty) | easy | less than a minute
Installing Composer.
mhan@brahms:~/bin
$ curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /home/mhan/bin/composer.phar
Use it: php composer.phar
Make sure you have PHP (CLI version) installed. If you're the only developer on the machine, you may want to create a folder called ~/bin and put the generated composer file there. I usually rename mine to simply composer and then make it only user executable. By default it becomes other-executable. This way I can just invoke $ composer update
from anywhere. Feel free to make it available to others by moving it to /usr/local/bin.
Notes
Be sure to run $ composer self-update
often because numerous updates are occurring on a daily basis.
References
- ↑ Composer. Program documentation. Composer. N.p., n.d. Web. 26 Feb. 2015. <https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx>.