rsr / yii2-check-deps
Check for new migrations/dependencies of Yii 2 application when in development mode and apply them if user asked to.
Installs: 214
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-09 07:43:06 UTC
README
Check for new migrations/dependencies of Yii 2 application when in development mode and apply them if user asked to.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --dev rsr/yii2-check-deps
or add
"rsr/yii2-check-deps" : "*"
to the require-dev section of your composer.json
file.
Usage
Add the following to yii2 config/web.php file:
...
if (YII_ENV_DEV) {
...
$config['bootstrap'][] = 'checkDeps';
$config['components']['checkDeps'] = [
'class' => rsr\yii2\checkDeps\CheckDeps::class
];
...
}
...
return $config;
Resources
- Extension page on yii website: https://www.yiiframework.com/extension/rsr/yii2-check-deps.