INSTALL COMPOSER 2 ON UBUNTU 20.04
Quick How-To for getting composer 2 to work since composer 1 has been deprecated
Login to a terminal
sudo bash
apt-get update
apt-get upgrade
apt install php-cli unzip
exit
cd ~
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
echo hash
php -r “if (hash_file(‘SHA384’, ‘/tmp/composer-setup.php’) === ‘$HASH’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
Installer will be verified
sudo php /tmp/composer-setup.php –install-dir=/usr/local/bin –filename=composer
Composer will download and install
Then Type:
composer
You should see a Composer info screen