Yii2 framework installation (windows) and yii2 framework. Yii2 framework installation (windows), yii2 framework -- Install the PHP environment Wamp integrated environment, XAMMP, and so on. -- Install Composerpan. baidu. coms1i3fejjvPS: during installation, there is a manual operation item: Yii2 framework installation (windows), yii2 framework
--> Install the PHP environment
Wamp integration environment, XAMMP, etc.
--> Install Composer
Http://pan.baidu.com/s/1i3fejjv
PS: during the installation process, select the directory where php.exe is located D: \ wamp \ bin \ php \ php5.5.12 \ php.exe.
--> Download the YII2 framework
Basic edition http://pan.baidu.com/s/1qWkV344
Premium http://pan.baidu.com/s/1i3B8ezz
There are two templates: the basic application template of Yii2 and the advanced application template of Yii2.
Decompress the downloaded package to the WEB development Directory (www directory) and rename it advance.
--> Open the run window, shortcut key (windows + R), enter cmd, and open the command line window.
--> Enter the advance Directory
--> D:
--> Cd d: \ wamp \ www \ advance
PS: Press the tab key to quickly complete the input.
--> Composer create-project -- profer-dist yiisoft/yii2-app-advanced ../yiitest (here is the project directory name, random)
--> The token may be required.
--> Open https://github.com/
--> If you do not have an account, register it first. if you have an account, log on directly.
--> Click the avatar in the upper-right corner, and set Setting.
--> Personal access tokens
--> Generate new token input description (random name), and then copy
--> Right-click the command line window, paste it, and press Enter. here, the token is hidden. it is not displayed after the paste. press enter and then OK.
--> Then wait, wait, and wait until the installation is successful (the Writing lock file Generating autoload files installation is successful. if the installation fails, delete the yiitest in the www directory, execute the command again)
--> Initialize yiitest
--> Cd .. (back to the upper-level Directory)
--> Cd yiitest (enter the project directory)
--> Select 0 for init (development version), press enter, enter yes, and press Enter. installation is complete.
--> Open a project
--> Http: // localhost/yiitest/frontend/web/(foreground)
--> Http: // localhost/yiitest/backend/web/(background)
Ghost (windows), yii2 framework-install the PHP environment Wamp integrated environment, XAMMP, and so on. -- Install Composer http://pan.baidu.com/s/1i3fejjv PS: There is a manual operation item during installation...