Install YII2 advanced version under Windows

Source: Internet
Author: User

1. First install the Composer

2. Implementation of composer Global require "fxp/composer-asset-plugin:~1.1.1"

3. Execution composer Create-project--prefer-dist yiisoft/yii2-app-advanced yii2

4. Modify Composer.json to add the following:

"Yiisoft/yii2-redis": "~2.0.0",

"Yiisoft/yii2-smarty": "*",
"Yiisoft/yii2-twig": "*",
"Yiisoft/yii2-mongodb": "*",
"Yiisoft/yii2-jui": "~2.0.0"

5. Perform composer update

6. Switch to the YII2 directory and execute the Init

7. The difference between the prod and Dev is that the portal file defines debug and env differently and can be toggled through the local file

Install YII2 advanced version under Windows

Related Article

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.