雷林鵬分享:Composer 安裝

  下午在安裝 Laravel 框架過程當中,遇到了很多問題,由於 Laravel 的安裝依賴於 composer,這裏就先介紹一下 composer 的安裝方法:php

  安裝方法:laravel

  #下載網絡

  sudo curl -sS https://getcomposer.org/installer | sudo php -d detect_unicode=Offcomposer

  #更改文件權限框架

  sudo chmod a+x composer.pharcurl

  #移動文件工具

  sudo chmod a+x composer.pharui

  #更新this

  sudo composer self-updateurl

  這樣就能夠使用 composer 了。

  [root@localhost www.laravel.com]# composer

  Zend Guard Loader requires Zend Engine API version 220090626.

  The Zend Engine API version 220121212 which is installed, is newer.

  Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

  ______

  / ____/___ ____ ___ ____ ____ ________ _____

  / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/

  / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /

  \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/

  /_/

  Composer version aa9c257f0efd1a54c93ba95282821a497bc15d75 2014-03-09 15:09:15

  Usage:

  [options] command [arguments]

  Options:

  --help -h Display this help message.

  上面講的都是在Linux環境下composer安裝方法。

  下面順便介紹一下MAC環境下安裝composer的方法:

  brew install josegonzalez/php/composer

  固然啦,前提是你已經安裝了brew工具.

  參考:https://getcomposer.org/doc/00-intro.md(編輯:雷林鵬 來源:網絡 侵刪)

相關文章
相關標籤/搜索