Composer: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
iwu
 
add a description of composer
Line 1: Line 1:
Composer is a dependency manager for PHP.


== Installation ==
== Installation ==
Line 16: Line 17:
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 user executable. This way I can just invoke <code>$ composer update</code> from anywhere.
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 user executable. This way I can just invoke <code>$ composer update</code> from anywhere.


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


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

Revision as of 15:01, 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 user executable. This way I can just invoke $ composer update from anywhere.

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