PHP 通过composer安装YII2

阅读(4474)

1. 安装Composer


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

2. 安装Yii2 advance


composer global require "fxp/composer-asset-plugin:~1.1.1"
composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application

refer:
http://www.yiiframework.com/doc-2.0/guide-start-installation.html
https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide/start-installation.md

Tags: yii