ubuntu 安裝 php Composer
Step 1:進入安裝目錄
cd /usr/local/bin
Step 2:下載並安裝
sudo curl -s https://getcomposer.org/installer | sudo php
Step 3:新增執行許可權
sudo chmod a+x composer.phar
Step 4:加入全域性命令:
mv composer.phar /usr/local/bin/composer
Step 5:更新,檢視版本號
sudo composer.phar self-update
檢視版本號
composer --version