Open your terminal, go to the preferred project directory / folder and type the following command to install Composer.
# curl -sS https://getcomposer.org/installer | php
A new file called "composer.phar" will be downloaded in the directory.
Then type
# php composer.phar
to check if Composer has been installed, which lists all available commands
Composer Site
Docs