PHPackages                             webtoucher/yii2-migrate - 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. webtoucher/yii2-migrate

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

webtoucher/yii2-migrate
=======================

Yii 2 extension for creating and running migrations

v1.0.1(11y ago)09.5k↓12.5%[1 PRs](https://github.com/webtoucher/yii2-migrate/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jul 23Pushed 10y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

yii2-migrate
============

[](#yii2-migrate)

Console Migration Command with multiple paths/aliases support.

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

[](#installation)

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

Either run

```
$ php composer.phar require webtoucher/yii2-migrate "*"

```

or add

```
"webtoucher/yii2-migrate": "*"

```

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

Add the following in your console config:

```
return [
    ...
    'controllerMap' => [
        ...
        'migrate' => [
            'class' => 'webtoucher\migrate\controllers\MigrateController',
            // alias of modules directory
            // 'modulesPath' => '@app/modules',
            // additional aliases of migration directories
            // 'migrationLookup' => [],
        ],
        ...
    ],
    ...
];
```

Usage
-----

[](#usage)

To create migration in common directory `@app/migration` use follow command:

```
$ php yii migrate/create comment_for_migration
```

To create migration in directory of the module `@app/modules/module_name/migration` use follow command:

```
$ php yii migrate/create comment_for_migration module_name
```

To run all migration from common directory and from directories of the modules use follow command:

```
$ php yii migrate
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

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

Total

2

Last Release

4316d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/500243?v=4)[Алексей Кузнецов](/maintainers/webtoucher)[@webtoucher](https://github.com/webtoucher)

---

Top Contributors

[![webtoucher](https://avatars.githubusercontent.com/u/500243?v=4)](https://github.com/webtoucher "webtoucher (18 commits)")

---

Tags

extensionyiimigrate

### Embed Badge

![Health badge](/badges/webtoucher-yii2-migrate/health.svg)

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

###  Alternatives

[yiiext/activerecord-relation-behavior

Inspired by and put together the awesomeness of many yii extensions that aim to improve saving of related records. Comes with 100% test coverage and well structured and clean code so it can savely be used in enterprise production enviroment.

9336.5k](/packages/yiiext-activerecord-relation-behavior)[yiiext/migrate-command

This is an enhanced version of the Yii Database Migration Tool that adds module support and many more usefull features.

34173.8k4](/packages/yiiext-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)
