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

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

yiimaker/yii2-gii-migration
===========================

Yii2 Gii Migration

1.1.0(8y ago)84.0k↓50%1BSD-3-ClausePHP

Since Jan 9Pushed 8y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (9)Used By (0)

 [ ![](https://avatars1.githubusercontent.com/u/24204902) ](https://github.com/yiimaker)

Migration generator for Gii
===========================

[](#migration-generator-for-gii)

[![Total Downloads](https://camo.githubusercontent.com/cce3808c2ff81a37b732b3a36fc8d162b42440d46f53f6e5e40fd1af761fa180/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d6769692d6d6967726174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/yiimaker/yii2-gii-migration)[![Latest Stable Version](https://camo.githubusercontent.com/03c55d7f8c6a085aef1758bec86ce70c358decce4265c351f66020ac34ed97a5/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d6769692d6d6967726174696f6e2f762f737461626c65)](https://packagist.org/packages/yiimaker/yii2-gii-migration)[![Latest Unstable Version](https://camo.githubusercontent.com/c08d014bd3e643ff49f72f144eab29c77f2fabd9b481efc54f3a421f39492882/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d6769692d6d6967726174696f6e2f762f756e737461626c65)](https://packagist.org/packages/yiimaker/yii2-gii-migration)

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

[](#installation)

#### Install package

[](#install-package)

Run command

```
composer require yiimaker/yii2-gii-migration

```

or add

```
"yiimaker/yii2-gii-migration": "~1.0"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

Configure generator in Gii module configuration

```
'modules' => [
    'gii' => [
        // ...
        'generators' => [
            // ...
            'migration' => [
                'class' => \ymaker\gii\migration\Generator::class,
            ],
        ],
    ],
],
```

Fields
======

[](#fields)

FieldTypeDefaultDescription`$migrationPath``string``'@console/migrations'`the path to the folder in which the migration file will be generated`$db``string``db`connection to a database`$fields``array``none`table fields`$foreignKeys``array``none`table foreign keys`$useTablePrefix``bool``true`use table prefix`$tableName``string``none`table name`$migrationName``string``none`migration name`$translationPostfix``string``'_translation'`postfix for translation table name`$translationRefColumn``string``'id'`name for model column`$translationTableColumn``string``'model_id'`name for translation model column`$translationLanguageTableName``string``'language'`language table name`$translationLanguageColumnRefName``string``code`language column name in language table`$translationLanguageColumnName``string``'language'`language column name for translation table`$translationLanguageColumnType``string``string`language column type`$translationLanguageColumnParam``string``null`language column paramLicense
-------

[](#license)

[![License](https://camo.githubusercontent.com/689904b16cdb2ace05d1d8f48d516fc3ca5c77a5d802252c8c030ed51ae0c415/68747470733a2f2f706f7365722e707567782e6f72672f7969696d616b65722f796969322d6769692d6d6967726174696f6e2f6c6963656e7365)](https://packagist.org/packages/yiimaker/yii2-gii-migration)

This project is released under the terms of the BSD-3-Clause [license](LICENSE).

Copyright (c) 2017, Yii Maker

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~35 days

Recently: every ~61 days

Total

8

Last Release

3166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81dbf9eb881773e58a5472007499612c6e0c93007a75336688a1a21b9630dc1e?d=identicon)[YiiMaker](/maintainers/YiiMaker)

---

Top Contributors

[![trabem](https://avatars.githubusercontent.com/u/3384909?v=4)](https://github.com/trabem "trabem (11 commits)")[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (2 commits)")

---

Tags

gii-migrationyii2-extensionyii2-giiyii2-migrationmigrationyii2extensiongii

### Embed Badge

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

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

###  Alternatives

[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

97209.6k16](/packages/johnitvn-yii2-ajaxcrud)[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31295.5k6](/packages/dmstr-yii2-migrate-command)

PHPackages © 2026

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