Install Composer

Composer is an extremely commonly used PHP package manager. You will need/want it if you're working with PHP.

Run the following to install composer and make it available to the entire system. This requires root access. You can run these commands from any folder as they will clean up after themselves:

sudo su
php -r "copy('', 'composer-setup.php');"
php composer-setup.php
mv composer.phar /usr/local/bin/composer
rm composer-setup.php

You can now access composer from anywhere!

Revision #2
Created 12 January 2022 19:55:04 by William
Updated 13 January 2022 00:35:53 by William