YII2.0 version framework with composer installation

Source: Internet
Author: User

I YII2.0 frame installation experience, said many are tears, direct, encountered problems, to share, do not like to spray

First , in the installation of YII2.0 we need to download a composer, what is composer, simply interpreted as a PHP component tool, Composer is the tool used in PHP to manage dependency (dependency) relationships, You can declare your dependencies on the External tool Library (libraries) in your project, and composer will help you install these dependent library files.

Composer https://getcomposer.org/download/

My environment is phpstudy.

1, simple introduction after the opening of the positive link, first installed composer, installation process has been point next, then the problem arises, the direct

At this point will be prompted to open the php.ini file extension, the front of the good points removed on OK

2, then install the Yii yii2-advance installation (through the composer to install)

http://www.yiiframework.com/download/ Download YII2.0 Framework

Enter CMD, enter into the directory where you put the frame for example my in e\www\yii\advanced

Enter the directory in the CMD Command window and enter the following command

Composer global require "fxp/composer-asset-plugin:^1.2.0"

In this spit Groove Yii official website command

Will always give you an error.

For example

Wait for the download,

This prompts composer success

Download successful

3. then continue to enter the init command

Then select 0 Press ENTER to select developer mode

4 . Then enter http://localhost/admin/frontend/web/index.php in the browser

Appear

Congratulations on your successful installation.

Finally warm tip YII2.0 support php5.4 above version, before installing composer, be sure to modify the PHP extension, that is, the 1th dot above

YII2.0 version framework with composer 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.