Home >Backend Development >PHP Tutorial >Yii2 framework installation windows

Yii2 framework installation windows

WBOY
WBOYOriginal
2016-07-29 09:12:121408browse

-->Install PHP environment
Wamp integrated environment, XAMMP, etc.
-->Install Composer
http://pan.baidu.com/s/1i3fejjv
PS: During the installation process, there is a manual operation item to select the directory where php.exe is located: D:wampbinphpphp5.5.12php.exe
- ->Download the framework of YII2
Basic version http://pan.baidu.com/s/1qWkV344
Advanced version http://pan.baidu.com/s/1i3B8ezz
Here are two templates: Basic application of Yii2 After downloading the program template and Yii2 advanced application template
, unzip it into the WEB development directory (www directory), and rename it to advance
--> Open the run window, shortcut key (windows+R), enter cmd, Open the command line window
-->Enter the advance directory
--> d:
--> cd d:wampwwwadvance
PS: Press the tab key when typing to quickly complete
--> composer create-project --profer-dist yiisoft/yii2-app-advanced ../yiitest (this is the project directory name, feel free)
--> You may be asked to enter a token
--> Open https://github.com/
--> If you don’t have an account, register first. If you have an account, log in directly
--> Click on the avatar in the upper right corner, Setting
--> Personal access tokens
--> Generate new token Enter a description (name as you like), Then copy
--> Right-click the command line window, paste, and press Enter. The token here is hidden and will not be displayed after pasting. Just press Enter and OK
--> Then wait, wait, wait, until The installation is successful (Writing lock file Generating autoload files appears, which means the installation is successful. If it fails, delete yiitest in the www directory and execute it again)
--> Initialize yiitest
--> cd .. (return to the previous page) First-level directory)
--> cd yiitest (enter the project directory)
--> init select 0 (development version), press Enter, enter yes, press Enter, the installation is complete
--> Open the project
-- > http://localhost/yiitest/frontend/web/(frontend)
--> http://localhost/yiitest/backend/web/(backend)

The above introduces the Yii2 framework to install windows, including shortcut keys and github content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn