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

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

tjura/yii2-migration-helper
===========================

Interactive migration generator for Yii2

1.0.1(3y ago)32.0k↓100%MITPHPPHP &gt;=8.1

Since Jun 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tjura/yii2-migration-helper)[ Packagist](https://packagist.org/packages/tjura/yii2-migration-helper)[ RSS](/packages/tjura-yii2-migration-helper/feed)WikiDiscussions master Synced today

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

Yii 2 - Migration generator
===========================

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

 [![PHP Versions Supported](https://camo.githubusercontent.com/ff600cc25c5028f86470a249c0e5cac017947d4f333258f3c0ffbe90f3773431/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d3e3d382e312d3737376262332e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/ff600cc25c5028f86470a249c0e5cac017947d4f333258f3c0ffbe90f3773431/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d3e3d382e312d3737376262332e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765) [![Framework](https://camo.githubusercontent.com/567c8001233138269f64f6c1d225d2c9a1776f9a486338880f627ec1778eec43/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616d65776f726b2d596969322d3737376262332e7376673f6c6f676f3d6672616d65776f726b266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/567c8001233138269f64f6c1d225d2c9a1776f9a486338880f627ec1778eec43/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616d65776f726b2d596969322d3737376262332e7376673f6c6f676f3d6672616d65776f726b266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666f722d7468652d6261646765)

- [Integration time and difficulty](#integration-time-and-difficulty)
- [Description &amp;&amp; How its works](#description--how-its-works)
- [Usage](#usage)
- [How to install](#installation-instructions)
- [Dev notes](#dev-notes)

Integration time and difficulty
-------------------------------

[](#integration-time-and-difficulty)

- Around 5 minutes
- Very easy

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Yii2 &gt;= 2.0.8

Description &amp;&amp; How its works
------------------------------------

[](#description--how-its-works)

This is an interactive Yii migrate command expansion. It will help you to create basic migrations using question in command line. This extension basically creating commands according Yii documentation

Example output:

```
yii migrate/create create_post_table --fields="title:string,body:text,author_id:integer:notNull:foreignKey(user)"
```

Usage
-----

[](#usage)

```
php yii migrate
```

### Available options

[](#available-options)

1. Create table
2. Drop table
3. Add column
4. Drop Column
5. Add Junction Table
6. Redo last
7. Down last
8. Create empty migration
9. Up

Installation instructions
-------------------------

[](#installation-instructions)

```
composer require tjura/yii2-migration-helper
```

Update your console.php config file

```
'controllerMap' => [
    'migrate' => [
        'class' => \tjura\migration\commands\MigrateController::class,
    ]
]
```

Dev notes
---------

[](#dev-notes)

- This project was created for help me understand how to create good quality opensource extension and also to improve everyday tasks when working on Yii2 projects.

### What's next

[](#whats-next)

- Improve code quality and write unit tests
- Release improved version for older php 7.x

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~22 days

Total

3

Last Release

1339d ago

Major Versions

0.2.0 → 1.0.02022-07-06

PHP version history (2 changes)0.2.0PHP &gt;=7.2

1.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![tjura](https://avatars.githubusercontent.com/u/3449794?v=4)](https://github.com/tjura "tjura (34 commits)")

---

Tags

migration

### Embed Badge

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

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

###  Alternatives

[bizley/migration

Migration generator for Yii 2.

297369.5k11](/packages/bizley-migration)[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31294.7k4](/packages/dmstr-yii2-migrate-command)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11314.8k](/packages/yii2tech-illuminate)[tmukherjee13/yii2-reverse-migration

Generate working migration classes from existing Database

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

PHPackages © 2026

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