2 Minute How To - Install composer on Ubuntu globally

2 Minute How To – Install composer on Ubuntu globally



Install composer globally on Ubuntu. The install instructions are similar on other platforms although the package manager might be different.

Link to the composer checksum hash –

Follow me on Twitter – @CoderNova1
Please like and subscribe

Commands:
apt update
apt install curl php-cli php-mbstring git unzip
cd
curl -sS -o composer-setup.php
ls -l
cat composer-setup.php
HASH={YOUR_HASH}
php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘$HASH’) { echo ‘good;’ } else { echo ‘bad’;} echo PHP_EOL;”
php composer-setup.php –install-dir=/usr/local/bin –filename=composer
composer

One thought on “2 Minute How To – Install composer on Ubuntu globally

Leave a Reply

Your email address will not be published. Required fields are marked *