Skip to content
Check for new migrations/dependencies of Yii 2 application when in development mode and apply them if user asked to.
PHP JavaScript CSS
Branch: master
Clone or download
RezaSR - Update README.md: add Resources
- Update keywords of composer.json
Latest commit 4a68a81 Sep 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets - It is working now Sep 27, 2019
commands - It is working now Sep 27, 2019
controllers - It is working now Sep 27, 2019
views/process - It is working now Sep 27, 2019
.gitignore - Create the main structure Sep 24, 2019
Asset.php - It is working now Sep 27, 2019
CheckDeps.php - It is working now Sep 27, 2019
LICENSE Initial commit Sep 20, 2019
README.md - Update README.md: add Resources Sep 27, 2019
composer.json - Update README.md: add Resources Sep 27, 2019

README.md

yii2-check-deps

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

You can’t perform that action at this time.