I YII2.0 frame installation experience, said many are tears, direct, encountered problems, to share, do not like to spray
First , in the installation of YII2.0 we need to download a composer, what is composer, simply interpreted as a PHP component tool, Composer is the tool used in PHP to manage dependency (dependency) relationships, You can declare your dependencies on the External tool Library (libraries) in your project, and composer will help you install these dependent library files.
Composer https://getcomposer.org/download/
My environment is phpstudy.
1, simple introduction after the opening of the positive link, first installed composer, installation process has been point next, then the problem arises, the direct
At this point will be prompted to open the php.ini file extension, the front of the good points removed on OK
2, then install the Yii yii2-advance installation (through the composer to install)
http://www.yiiframework.com/download/ Download YII2.0 Framework
Enter CMD, enter into the directory where you put the frame for example my in e\www\yii\advanced
Enter the directory in the CMD Command window and enter the following command
Composer global require "fxp/composer-asset-plugin:^1.2.0"
In this spit Groove Yii official website command
Will always give you an error.
For example
Wait for the download,
This prompts composer success
Download successful
3. then continue to enter the init command
Then select 0 Press ENTER to select developer mode
4 . Then enter http://localhost/admin/frontend/web/index.php in the browser
Appear
Congratulations on your successful installation.
Finally warm tip YII2.0 support php5.4 above version, before installing composer, be sure to modify the PHP extension, that is, the 1th dot above
YII2.0 version framework with composer installation