Learn the YII2 framework from scratch (ii) Composer installation extension _php instance

Source: Internet
Author: User
Tags git clone

At present, the expansion of the YII2 is not much, as of today, the official website a total of 33, but these plug-ins are not lack of good extension plug-ins,

I tried a few, found a series of useful Yii2 Plug-ins, the author is from India's Krajee team, they write plug-ins are very useful. Recommend it.

Krajee team's website: http://krajee.com, there are several good plug-ins to try.

The following is an introduction to the Yii2 plug-in installation method. Install plug-in Yii2-detail-view via composer.

Git

Recommended installation Git,composer installation plugin will use git clone,git official download website: Portal

If you have not installed Git,cmd execute command you will be prompted that git is not a valid command. Then find the hard drive to download the address. It doesn't really matter if you don't install Git.

Install Git under Windows, configure the environment variable, and D:\Program files\git\bin into the PATH environment variable.

Installation method

Yii2-detail-view

Official Description:

Installation The 
preferred way to install this extension is through composer.
Either run:
$ php Composer.phar require kartik-v/yii2-detail-view "*"
or add:
"Kartik-v/yii2-detail-view" : "*" to the Require section of
your Composer.json file.

This is relative to the Linux environment installation method, Windows use composer

CMD execution command: Composer require kartik-v/yii2-detail-view "*"


Installation completed, we will see the installation process, installed 5 Other plug-ins, these are and Yii2-detail-view have dependencies of Plug-ins,

This is the handy place for composer tools to automate the analysis of dependencies and help us install them perfectly.

See the "kartik-v" directory under the Webroot/appname/vendor directory. See 6 directories stored under the path. Indicates that the installation was successful.

Plug-in installation is here, as to how to use. Later in the learning process to be introduced. ^_^

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.