Yii2 framework installation (windows), yii2 framework _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.