Installing Composer on Ubuntu
Note: This article applies to older versions. You can now install by simply typing "sudo apt install composer" from the terminal.
Local Composer Installation
If you only want to perform the installation for a single project, type the following code into the terminal.
curl -sS https://getcomposer.org/installer | php
To run it, use the code below.
php composer.phar
Global Composer Installation
If you want to install it on all computers and run it on any project you want, whenever you want. global You need to install. To do this, type the following code into the terminal.
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
To run it in terminal composer Just use the code.