_php instance of installing Yii framework using composer

Source: Internet
Author: User
The examples in this article describe the method of installing the Yii framework using composer. Share to everyone for your reference, as follows:

It is now popular to use composer to install the PHP framework, composer is the tool that PHP uses to manage dependencies, yii,laravel, seven cows and other frameworks or services use composer as the preferred tool for installation.

The following download installs the YII framework as an example to learn to install the PHP framework using composer:

First go to composer download install this tool.

Installing Yii via Composer

This is the preferred method for installing Yii2.0. If you have not installed composer, you can follow the instructions here to install.

After installing composer, run the following command to install the composer Asset plugin:

Copy the Code code as follows: PHP Composer.phar global require "fxp/composer-asset-plugin:1.0.0"
Now select one of the application templates to begin installing YII 2.0. The application template is a skeleton Web application package that contains Yii writes.

To install the basic Application template, run the following command:

Copy the Code code as follows: PHP composer.phar create-project yiisoft/yii2-app-basic Basic 2.0.4
To install the Advanced application template, run the following command:

Copy the Code code as follows: PHP Composer.phar create-project yiisoft/yii2-app-advanced Advanced 2.0.4
Please note that you may be prompted to enter your GitHub username and password during the installation process. This is normal. Just enter them and continue.

Turn from: Small Talk blog http://www.tantengvip.com/2015/05/composer-php/

For more information on YII related content readers can view this site topic: "YII framework Introduction and common skills Summary", "PHP Excellent Development Framework Summary", "Smarty Template Primer Basic Tutorial", "PHP date and Time usage summary", "PHP object-oriented Programming introduction Tutorial", " PHP String Usage Summary, "Getting Started with Php+mysql database operations" and "PHP Common Database Operations Skills Summary"

It is hoped that this article is helpful to the PHP program design based on YII framework.

  • 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.