PHPackages                             indigerd/yii2-migration-aware-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. indigerd/yii2-migration-aware-module

ActiveYii2-extension[Database &amp; ORM](/categories/database)

indigerd/yii2-migration-aware-module
====================================

Migration aware module extension for Yii2.

V1.0.3(8y ago)459.2k↓83.6%52MITPHP

Since Feb 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Indigerd/yii2-migration-aware-module)[ Packagist](https://packagist.org/packages/indigerd/yii2-migration-aware-module)[ RSS](/packages/indigerd-yii2-migration-aware-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (2)

yii2-migration-aware-module
===========================

[](#yii2-migration-aware-module)

Yii2 extension that allows modules to store migrations in their own folders and make them available for yii/migrate command

\##Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "indigerd/yii2-migration-aware-module" "\*"

or add

"indigerd/yii2-migration-aware-module" : "\*"

to the require section of your application's composer.json file.

\##Usage

In your console config file in your migration section replace with class property and add configFiles array property. configFiles is array of configs where component will scan for your migration aware modules. By default configFiles contains backend and frontend configs from advanced application template. For example:

```
        'migrate'=>[
            'class' => 'indigerd\migrationaware\controllers\MigrateController',
            'configFiles' => [
                '@backend/config/web.php',
                '@frontend/config/web.php',
                '@someAnotherAliasHere/config/web.php',
            ],

            'migrationPath'=>'@common/migrations/db', //leave as it was before
            'migrationTable'=>'{{%system_db_migration}}' //leave as it was before
        ],
```

In your modules that have migrations your need either to implement indigerd\\migrationaware\\MigrationAwareInterface or to extend from indigerd\\migrationaware\\MigrationAwareModule. If you will implement interface you should implement method getMigrationPath and return in it folder which contains your module migrations. For example:

```
    public function getMigrationPath()
    {
        return __DIR__.'/migrations';
    }
```

\##License

yii2-migration-aware-module is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~356 days

Total

3

Last Release

3033d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a703c1aca573c9decd6f315c7bf25ae11e8e63120318c97c6ce4819133080ac8?d=identicon)[Indigerd](/maintainers/Indigerd)

---

Top Contributors

[![Indigerd](https://avatars.githubusercontent.com/u/2143512?v=4)](https://github.com/Indigerd "Indigerd (5 commits)")[![andrey-tm](https://avatars.githubusercontent.com/u/23074051?v=4)](https://github.com/andrey-tm "andrey-tm (1 commits)")[![st-alexander](https://avatars.githubusercontent.com/u/16461590?v=4)](https://github.com/st-alexander "st-alexander (1 commits)")

---

Tags

migrationextensionmoduleyiicomponent

### Embed Badge

![Health badge](/badges/indigerd-yii2-migration-aware-module/health.svg)

```
[![Health](https://phpackages.com/badges/indigerd-yii2-migration-aware-module/health.svg)](https://phpackages.com/packages/indigerd-yii2-migration-aware-module)
```

###  Alternatives

[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31295.5k6](/packages/dmstr-yii2-migrate-command)[sjaakp/yii2-sortable-behavior

Sort ActiveRecords and related records in Yii2.

36144.7k](/packages/sjaakp-yii2-sortable-behavior)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)[nanson/yii2-postgis

Yii2-extension to work with postgis data

1851.6k](/packages/nanson-yii2-postgis)[mg-code/yii2-helpers

A collection of useful helper classes for Yii framework 2.0

2022.5k5](/packages/mg-code-yii2-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
