(Ubuntu) Install PHP Composer

Step 1:

(The recommended path, not needed.)

cd /usr/local/bin

Step 2:

(install)

 sudo curl -s https://getcomposer.org/installer | sudo php

Step 3:

(Add execute permissions.)

sudo chmod a+x composer.phar

Step 4:

(This step is not necessary. If needed, you can use this script to update Composer.)

sudo composer.phar self-update

你可能感兴趣的:(PHP,ubuntu,Composer)