Install Yii2 under Windows using composer

Source: Internet
Author: User

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

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.