Installing composer on your server running Ubuntu Linux

Fig.01: Installing composer on your server running Ubuntu Linux

Fig.01: Installing composer on your server running Ubuntu Linux

To install composer (a php management tool) on your server running Ubuntu Linux, run:
$ $ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Sample outputs:

#!/usr/bin/env php
All settings correct for using Composer
Downloading...
 
Composer successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer

To use composer type with existing file:
$ composer install --no-dev
See help page for more info on how to create .json file and use it:
$ composer

Examples and usage: How to install Composer on Debian / Ubuntu Linux