Home  >  Article  >  PHP Framework  >  How to install plug-ins for yii

How to install plug-ins for yii

(*-*)浩
(*-*)浩Original
2019-12-30 11:10:341948browse

How to install plug-ins for yii

Install the composer plug -in installation: (Recommended learning: yii framework

)

1, add the corresponding plug-in in the project root directory: vendor -> composer.json: add

in the following range:


For example: the texture cannot be posted, please describe it in text: Found Corresponding below.

"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.6",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-widget-datetimepicker": "*",
"kartik-v/yii2-widgets": "dev-master"

No need to put a comma in the last one,

Find the corresponding project in the shell: If it is an ABC project, enter the ABC project and execute: composer update and install it until successful.

Second method:

Find the corresponding project in SHELL and find the corresponding directory: enter cd vendor ->Execute:

composer require kartik-v/yii2-widget-fileinput "@dev"

Install directly, it is recommended to use the first method.

###

The above is the detailed content of How to install plug-ins for yii. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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