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.