The first step is to download the YIII framework http://www.yiichina.com
Second Step installation:
1. First you need to download the application template, divided into basic templates and advanced application templates, here I use the Advanced application template as an example:
Go here now. Advanced Application Templates https://github.com/yiisoft/yii2-app-advanced
2. After download, unzip and put it in www directory I put it in D:\wamp\www\yii2\advanced.
The cmd dos command enters this D:\wamp\www\yii2\advanced:
3. Running php -r "readfile(‘https://getcomposer.org/installer‘);" | php
4. This is just under the D:\wamp\www\yii2\advanced directory download a composer.phar file, with this file can execute php composer.phar commands, prompt:
5. Prepare all plugins!! It's very important, it's all going to fail with this step (remember to configure the PHP environment variable AH)
Execute command:php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
6. Create an App command:
Composer Create-project--prefer-dist Yiisoft/yii2-app-basic basic
Installation of YII framework under Windows system