Composer Introduction
Composer is a PHP to manage Dependencies ( Dependency ) Relationship tool. You can declare your dependencies on the External tool library (libraries) in your project, andComposer will help you install these dependent library files.
Windows installation Composer :
First, download Composer
Download Website: https://getcomposer.org/download/
Second, open PHP of the OpenSSL Support
Modify D:\WAMP\bin\php\php5.4.12 configuration file php.ini
Remove annotations;
Third, installation Composer
all the way "Next" installation is complete.
after installation, you will be prompted to reopen CMD used by the command line.
installation yii2-advanced Templates
First, download yii2-advanced Templates
Download Website: http://www.yiiframework.com/download/
Download complete Unzip to
D:\WAMP\www
second, through composer installation
Open CMD , jump to directory
D:\WAMP\www\advanced
Let's build a name named "Yii2test" of the app .
Enter the command:
Composer Create-project--prefer-dist--stability=dev yiisoft/yii2-app-advanced. /yii2test
wait ... The following interface appears, indicating that the installation was successful.
Iii. Initializing the Project
Execution CMD Command Init
Test the installation Results
Address bar Input: http://localhost/yii2test/frontend/web/index.php
You will see the following interface:
Install now Yii2 finished.
Install Yii2 under Windows using composer