You can install composer using below
Run below command :
curl -sS https://getcomposer.org/
sudo mv composer.phar /usr/bin/composer
Verify Composer is installed:
composer –version
If you face error please check the execute permission:
chmod +x /usr/bin/composer
composer –version