Mac 如何使用composer

weixin_34321977發表於2018-04-05

安裝composer
下載:curl -sS https://getcomposer.org/installer | php
全域性:mv composer.phar /usr/local/bin/composer

配置全域性的中國映象
composer config -g repo.packagist composer https://packagist.phpcomposer.com

composer安裝laravel到本地目錄
composer create-project --prefer-dist laravel/laravel . '5.2.*'

composer create-project --prefer-dist laravel/laravel=5.4.* /home/wwwroot/web.science.com

相關文章