PHPackages                             grundik/yii-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. grundik/yii-migrate

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

grundik/yii-migrate
===================

Simple package to add database migrations to project

0.1.5(5y ago)19.4k↓80%30BSDPHP

Since Mar 4Pushed 5y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (0)

yii-migrate
===========

[](#yii-migrate)

Simple package to add database migrations to project

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

[](#installation)

- Add to composer.json: ``

    ```
    "require": {
    "grundik/yii-migrate": "*@dev"
    },
    "repositories": [{
    "type": "vcs",
    "url": "https://github.com/Grundik/yii-migrate.git"
    }, {
    "type": "vcs",
    "url": "https://github.com/yiisoft/yii.git"
    }]

    ```
- Run composer:

    ```
    composer update
    ```
- Create configuration file:

     ```
    cp vendor/grundik/yii-migrate/config/migrations.php-default config/migrations.php
    ```
- Edit configuration file to fulfill your needs: set database credentials, migrations path
- Run

    - vendor/bin/migrate - to perform migrate;
    - vendor/bin/migrate create - to create new migration.

See also:

Modules
-------

[](#modules)

To use multiple migration folders (e.g. for multiple project modules), define them in migrations.php as explained in example config.

Use parameter --module=&lt;module\_name&gt; to perform action in explicit module:

```
vendor/bin/migrate create migration_name --module=module_name
```

Migrate without parameters will apply all new migrations from all modules.

Module migrations are applied in order of their creation, regardless of module.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

Recently: every ~320 days

Total

6

Last Release

1936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f8c2d86db133fcb9039cbe4ca30e359cafa7eb0cf3267890064a3379a832f04?d=identicon)[Grundik](/maintainers/Grundik)

---

Top Contributors

[![Grundik](https://avatars.githubusercontent.com/u/220951?v=4)](https://github.com/Grundik "Grundik (27 commits)")

---

Tags

yiidatabase-migration

### Embed Badge

![Health badge](/badges/grundik-yii-migrate/health.svg)

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

###  Alternatives

[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)[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)[sammaye/mongoyii

A Yii MongoDB ORM

13681.3k](/packages/sammaye-mongoyii)[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)[schmunk42/database-command

Yii command to create database migrations from existing schema

205.9k](/packages/schmunk42-database-command)

PHPackages © 2026

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