Home >PHP Framework >YII >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:
composer require kartik-v/yii2-widget-fileinput "@dev"
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!