Laravel 4 學習筆記

安裝Composer

環境 : Ubuntu 14.04

若沒有安裝 curl 可以先行安裝

$ sudo apt-get install curl

要使用composer必須要安裝php套件

(備註:php版本必須為5.4以上)

$ sudo apt-get install php5

使用curl下載composer,並把 composer.phar 檔名重新命名為 composer

$ curl -sS https://getcomposer.org/installer | php -- --filename=composer

將composer移到系統預設程式

$ sudo mv composer /usr/local/bin/composer

測試composer

$ composer

測試composer


參考資料