[Laravel] 安裝composer(install composer)

繁體中文:

安裝composer,從官網的Globally項目,可看到如何安裝至整個系統的全域裡,非常簡易,只要執行以下指令即可:
composer的套件

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
$ composer

若有出現類似以下畫面,即安裝成功:

  // 範例:
  $ mkdire composer-demo
  $ cd composer-demo
  $ composer require fzaninotto/faker
  $ composer install

English Version:

Install Composer from Globally item of Official Site, just type the following commands to install:

$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
$ composer

Then you can see: