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

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

andkon/yii2-migrate
===================

Class to simplify the writing of migrations

1.2.2(8y ago)013.3k↓12.5%proprietaryPHPPHP &gt;=5.4.0

Since Mar 28Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (8)Used By (0)

Add-on over standard migrations, which automatically creates migration rollback functions.
------------------------------------------------------------------------------------------

[](#add-on-over-standard-migrations-which-automatically-creates-migration-rollback-functions)

Надстройка над стандартными миграциями, позволяющая автоматически создавать функции отката миграции.

uses:

```
class m000000_000000_users extends \andkon\migrate\Migration
{
    public function setTables()
    {
        return [
            'users' => [
                'id'            => $this->primaryKey(),
                'company_id'    => $this->integer()->notNull(),
                'position_id'   => $this->integer(),
                'department_id' => $this->integer(),
                'login'         => $this->string(255)->notNull(),
                'password'      => $this->string(255),
                'password_salt' => $this->string(255),
                'first_name'    => $this->string(255),
                'middle_name'   => $this->string(255),
            ]
        ];
    }

    public function setForeignKeys()
    {
        return [
            // user
            [
                'user'    => 'company_id',
                'company' => 'id',
            ],
            [
                'user'     => 'position_id',
                'position' => 'id',
                'delete'   => 'RESTRICT',
            ],
        ];
    }
}

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~0 days

Total

7

Last Release

3254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23a468afa49a7228aaef2e563bb572f676599d9a5a6ded8606887056dce9d0ce?d=identicon)[andkon13](/maintainers/andkon13)

---

Top Contributors

[![andkon13](https://avatars.githubusercontent.com/u/4748164?v=4)](https://github.com/andkon13 "andkon13 (6 commits)")

---

Tags

migrationphpyii-extension

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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