Composer: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
m add references
add a notes section
Line 21: Line 21:
* Reference
* Reference
** ''Composer''. Program documentation. ''Composer''. N.p., n.d. Web. 26 Feb. 2015. <https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx>.
** ''Composer''. Program documentation. ''Composer''. N.p., n.d. Web. 26 Feb. 2015. <https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx>.
== Notes ==
Be sure to run <code>$ composer self-update</code> often as there are numerous updates even during a day to this software, as of year 2015.


[[Category:Web development]]
[[Category:Web development]]

Revision as of 15:16, 26 February 2015

Composer is a dependency manager for PHP.

Installation

Installing Composer.

$ 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/tmp/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.

  • Last tested on Ubuntu 14.04.2 LTS (trusty) | easy | less than a minute

Notes

Be sure to run $ composer self-update often as there are numerous updates even during a day to this software, as of year 2015.