composer

//安装composer php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"

php composer-setup.php

配置composer全局 sudo mv composer.phar /usr/local/bin/composer

//切换中国镜像 composer config -g repo.packagist composer https://packagist.phpcomposer.com

//更新composer composer selfupdate

安装laravel

composer create-project laravel/laravel laravel

安装thinphp5

composer create-project topthink/think=5.0.* tp5 --prefer-dist

安装yii 最新稳定版本

composer create-project --prefer-dist yiisoft/yii2-app-basic basic

你可能感兴趣的:(composer)