PHPackages                             deesoft/yii2-console - 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. deesoft/yii2-console

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

deesoft/yii2-console
====================

Yii2 console command

1.1(10y ago)415.5k2[1 PRs](https://github.com/deesoft/yii2-console/pulls)2BSD-3-ClausePHP

Since Jul 24Pushed 6y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (5)Used By (2)

yii2-console
============

[](#yii2-console)

Yii2 console command. Contain migration controller that more feature and usability.

[![Latest Stable Version](https://camo.githubusercontent.com/8c1f35c350330e8fd9f6a4d92a104ca7210b2ebc38d36a06aabba24c9ad22967/68747470733a2f2f706f7365722e707567782e6f72672f646565736f66742f796969322d636f6e736f6c652f762f737461626c65)](https://packagist.org/packages/deesoft/yii2-console)[![Latest Unstable Version](https://camo.githubusercontent.com/f51603fa3af3f9fe587bfb6de023f71cba39a1ac709f06ae6a43986d201bbc62/68747470733a2f2f706f7365722e707567782e6f72672f646565736f66742f796969322d636f6e736f6c652f762f756e737461626c65)](https://packagist.org/packages/deesoft/yii2-console)[![License](https://camo.githubusercontent.com/81823e28fa588bed2e6cb19a3527d61611f74e4362735cfc0564d90439d310dc/68747470733a2f2f706f7365722e707567782e6f72672f646565736f66742f796969322d636f6e736f6c652f6c6963656e7365)](https://packagist.org/packages/deesoft/yii2-console)

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

[](#installation)

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

Either run

```
php composer.phar require deesoft/yii2-console "~1.0"

```

or add

```
"deesoft/yii2-console": "~1.0"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply modify your config as follows:

```
// params.php or params-local.php

return [
    ...
    'dee.migration.path' => [
        '@yii/rbac/migrations',
        // list your migration path here
    ]
];
```

You also can dinamically add new path from your extension via `bootstrap`.

```
    ...
    public function bootstrap($app)
    {
        $app->params['dee.migration.path'][] = '@your/ext/migrations';
    }
```

Feature
-------

[](#feature)

### Compatible with official migrate command

[](#compatible-with-official-migrate-command)

### Partial Up, Down and Redo

[](#partial-up-down-and-redo)

Unlike original migration that only can `up`, `down` or `redo` with migration squence. We can `up`, `down` and `redo` individual migration without depend it squence. E.g, your migration history are

```
	(2016-02-09 02:29:14) m160201_050050_create_table_accounting
	(2016-02-09 02:29:14) m160201_050040_create_table_inventory
	(2016-02-09 02:29:13) m160201_050030_create_table_sales
	(2016-02-09 02:29:13) m160201_050020_create_table_purchase
	(2016-02-09 02:29:13) m160201_050010_create_table_master
	(2016-02-09 02:29:11) m140527_084418_auto_number
	(2016-02-09 02:29:11) m140506_102106_rbac_init
	(2016-02-01 04:02:51) m130524_201442_init

```

We can `down` or `redo` only `m160201_050020_create_table_purchase`. Use `migrate/partial` or `migrate/partial` to do that.

```
./yii migrate/down m160201_050020
./yii migrate/redo 140527_084418

```

### Exclude Specific version from action

[](#exclude-specific-version-from-action)

```
./yii migrate -e=160201_050030,140527_084418
./yii migrate/down all -e=m140506_102106_rbac_init

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

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

Total

2

Last Release

3739d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a5ba97416867dd2bff6c4e2fcd0e52f8b1f8bb7521dcef6b734636009ce834e?d=identicon)[mdmunir](/maintainers/mdmunir)

---

Top Contributors

[![mdmunir](https://avatars.githubusercontent.com/u/5828252?v=4)](https://github.com/mdmunir "mdmunir (35 commits)")

---

Tags

migrationyii2commandSample Data

### Embed Badge

![Health badge](/badges/deesoft-yii2-console/health.svg)

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

###  Alternatives

[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

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

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)[hzhihua/yii2-dump

Generate the schema from an existing database

1828.5k1](/packages/hzhihua-yii2-dump)[tmukherjee13/yii2-reverse-migration

Generate working migration classes from existing Database

2321.5k](/packages/tmukherjee13-yii2-reverse-migration)

PHPackages © 2026

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