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

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

c006/yii2-migration-utility
===========================

Automatically writes the create tables for migrations or create tables in general

v2.0.4(5y ago)63160.6k—0%35[4 issues](https://github.com/c006/yii2-migration-utility/issues)[1 PRs](https://github.com/c006/yii2-migration-utility/pulls)MITPHP

Since Jul 19Pushed 3y ago10 watchersCompare

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

READMEChangelog (10)DependenciesVersions (16)Used By (0)

Yii2 Migration Utility
======================

[](#yii2-migration-utility)

**Current Version - v2.0.4** `2020-06`

- Add JqueryAsset to DefaultController

This is a utility that writes the create table statement for migrations. The table(s), indexes, foreign keys must already exist.

Foreign Key - uses link table and numbering, table / columns had potential to be too long

Supports

- MySQL
- MsSQL
- PgSQL
- SQLite

It automatically writes out all:

- tables
- columns
- column types
- column defaults
- primary keys
- composite keys
- foreign key
- indexes
- Table data

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-source "c006/yii2-migration-utility" ">=2.0.4"

```

or add

```
"c006/yii2-migration-utility": ">=2.0.4"

```

to the require section of your `composer.json` file.

Required
--------

[](#required)

Update either ***config/web.php*** (basic) or common/config/main.php (advanced)

>

```
   'modules' => [
       'utility' => [
          'class' => 'c006\utility\migration\Module',
       ],
   ],

```

The tables must already exist in website schema.

Screen Capture
--------------

[](#screen-capture)

Image:

Usage
-----

[](#usage)

\###http://***\[Your\_Domain\]***/utility###

or

\###http://***\[Your\_Domain\]***/?r=/utility###

Updates
-------

[](#updates)

- Table options per database type
- Table indexes
- Table data

Contributors
------------

[](#contributors)

- [Insolita](https://github.com/Insolita)
- [Deele](https://github.com/Deele)
- Sedov Sergey
- fedemotta

Comments / Suggestions
----------------------

[](#comments--suggestions)

Please provide any helpful feedback or requests.

Thanks.

###  Health Score

43

↑

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~138 days

Recently: every ~294 days

Total

14

Last Release

2098d ago

Major Versions

v1.2.2 → v2.0.02017-04-05

### Community

Maintainers

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

---

Top Contributors

[![c006](https://avatars.githubusercontent.com/u/7686064?v=4)](https://github.com/c006 "c006 (55 commits)")[![ilyosdev](https://avatars.githubusercontent.com/u/20878705?v=4)](https://github.com/ilyosdev "ilyosdev (4 commits)")[![Insolita](https://avatars.githubusercontent.com/u/1847402?v=4)](https://github.com/Insolita "Insolita (4 commits)")[![nostop8](https://avatars.githubusercontent.com/u/818658?v=4)](https://github.com/nostop8 "nostop8 (1 commits)")[![sukvojte](https://avatars.githubusercontent.com/u/5289746?v=4)](https://github.com/sukvojte "sukvojte (1 commits)")[![vitorarantes](https://avatars.githubusercontent.com/u/2787948?v=4)](https://github.com/vitorarantes "vitorarantes (1 commits)")

---

Tags

migrationyii2extensiontables

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31294.7k4](/packages/dmstr-yii2-migrate-command)[hzhihua/yii2-dump

Generate the schema from an existing database

1828.2k1](/packages/hzhihua-yii2-dump)[dmstr/yii2-db

Database extensions

19606.8k6](/packages/dmstr-yii2-db)

PHPackages © 2026

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