Composer是PHP的一個依賴管理工具,那麼Ubuntu14.04下如何安裝Composer?下面就由composer使用教程欄位為大家講解Ubuntu14.04下安裝Composer的方法。
#下載Composer:
curl -sS https://getcomposer.org/installer | php
########################################################################################################## # ##安裝Composer:######
/usr/bin/php composer.phar --version
sudo mv composer.phar /usr/local/bin/composer
composer -version
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer config repo.packagist composer https://packagist.phpcomposer.com
"repositories": { "packagist": { "type": "composer", "url": "https://packagist.phpcomposer.com" } }
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=5.5.9", "laravel/framework": "5.2.*" }, "config": { "preferred-install": "dist" }, "repositories": { "packagist": { "type": "composer", "url": "https://packagist.phpcomposer.com" } } }
以上是Ubuntu14.04下安裝Composer的詳細內容。更多資訊請關注PHP中文網其他相關文章!