PHPackages                             ivanovyordan/yii2-migration - 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. ivanovyordan/yii2-migration

ActiveLibrary[Database &amp; ORM](/categories/database)

ivanovyordan/yii2-migration
===========================

Yii 2 composer module migration helper

v1.0.1(11y ago)1851MITPHPPHP &gt;=5.4.0

Since Dec 19Pushed 11y ago2 watchersCompare

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

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

Yii 2 Dependencies Migration
============================

[](#yii-2-dependencies-migration)

This is a small [Composer](https://getcomposer.org/) module that helps you reuse your [Yii 2](http://www.yiiframework.com/) modules.

Installation
------------

[](#installation)

Either run the following command in your project root:

```
php composer.phar require --prefer-dist ivanovyordan/yii2-migration "*"
```

or add this to the require section of your `composer.json` file:

```
"ivanovyordan/yii2-migration": "*"
```

Setup
-----

[](#setup)

Add the following to two rows to the `scripts` sections in your `composer.json` file:

```
"post-install-cmd": "ivanovyordan\\migration\\Migration::migrate",
"post-update-cmd": "ivanovyordan\\migration\\Migration::migrate"

```

Usage
-----

[](#usage)

1. Create packages for all your modules you want to reuse.
2. Create a `migrations` folder for modules that requires migrations.
3. Add your migrations in the `migration` directory.

Following these three steps will give you the chance to reuse and redistribute and update your modules without the need to manually do your migrations.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~36 days

Total

2

Last Release

4127d ago

### Community

Maintainers

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

---

Top Contributors

[![ivanovyordan](https://avatars.githubusercontent.com/u/979329?v=4)](https://github.com/ivanovyordan "ivanovyordan (3 commits)")

---

Tags

migrationyii2

### Embed Badge

![Health badge](/badges/ivanovyordan-yii2-migration/health.svg)

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

###  Alternatives

[yii2tech/illuminate

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31295.5k6](/packages/dmstr-yii2-migrate-command)[tmukherjee13/yii2-reverse-migration

Generate working migration classes from existing Database

2321.5k](/packages/tmukherjee13-yii2-reverse-migration)

PHPackages © 2026

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