Home > Backend Development > PHP Tutorial > How to install Yii framework using Composer, composer installation yii framework_PHP tutorial

How to install Yii framework using Composer, composer installation yii framework_PHP tutorial

WBOY
Release: 2016-07-12 08:57:14
Original
1030 people have browsed it

How to use Composer to install the Yii framework, composer to install the yii framework

The example in this article describes how to use Composer to install the Yii framework. Share it with everyone for your reference, the details are as follows:

It is now popular to use Composer to install PHP frameworks. Composer is a tool used by PHP to manage dependencies. Frameworks or services such as Yii, Laravel, Qiniu, etc. all use Composer as the preferred tool for installation.

The following is an example of downloading and installing the Yii framework to learn how to use Composer to install the PHP framework:

First go to Composer to download and install this tool.

Install Yii via Composer

This is the preferred method to install Yii2.0. If you don't have Composer installed yet, you can follow the instructions here to install it.

After installing Composer, run the following command to install the Composer Asset plug-in:

Copy code The code is as follows: php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
Now select one of the application templates to start installing Yii 2.0. An application template is a package containing a skeleton web application written in Yii.

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

Copy code The code is 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 code The code is 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.

Reprinted from: Xiaotan Blog http://www.tantengvip.com/2015/05/composer-php/

Readers who are interested in more Yii-related content can check out the special topics on this site: "Introduction to Yii Framework and Summary of Common Techniques", "Summary of Excellent PHP Development Framework", "Basic Tutorial for Getting Started with Smarty Templates", "php Date and Time" Usage Summary", "php object-oriented programming introductory tutorial", "php string (string) usage summary", "php mysql database operation introductory tutorial" and "php common database operation skills summary"

I hope this article will be helpful to everyone’s PHP program design based on the Yii framework.

Articles you may be interested in:

  • PHP YII framework development tips: rules custom validation rules in models (models)
  • Nginx configures PHP's Yii and CakePHP framework Examples of rewrite rules
  • Yii's method of using the migrate command to execute sql statements
  • YII Framework uses YIIC to quickly create YII applications. Detailed explanation of migrate usage examples
  • YII Framework tutorial Detailed explanation of using YIIC to quickly create YII applications
  • YII Framework tutorial’s internationalization implementation method
  • YII Framework tutorial’s detailed explanation of cache usage
  • YII Framework tutorial’s detailed explanation of security solutions
  • Detailed explanation of log usage in YII Framework tutorial
  • Detailed explanation of exception handling in YII Framework tutorial
  • Examples of common rules in Yii rules

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1110075.htmlTechArticleHow to use Composer to install the Yii framework, composer to install the yii framework. This article describes how to use Composer to install the Yii framework. Share it with everyone for your reference, the details are as follows: Now...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template