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

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

svbackend/yii2-console
======================

Yii2 console command

1.2(8y ago)22.2kBSD-3-ClausePHP

Since Jun 28Pushed 8y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (1)Used By (0)

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

[](#yii2-console)

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

Fork:

[![Latest Stable Version](https://camo.githubusercontent.com/5f6539e7fbbe8ace54f79a473d3423a8789ed91ca8c7fbbe0f32e8e0389a5a7a/68747470733a2f2f706f7365722e707567782e6f72672f73766261636b656e642f796969322d636f6e736f6c652f762f737461626c65)](https://packagist.org/packages/svbackend/yii2-console)[![Latest Unstable Version](https://camo.githubusercontent.com/59f07f1a64e30a18b4a4e52cf2b6e82ae6af91781449eb04e6f608dbcc495b50/68747470733a2f2f706f7365722e707567782e6f72672f73766261636b656e642f796969322d636f6e736f6c652f762f756e737461626c65)](https://packagist.org/packages/svbackend/yii2-console)[![License](https://camo.githubusercontent.com/26a3679e911c5f13b015065953c3e82a7c3f46c5b727d21fe749995cbe7a8121/68747470733a2f2f706f7365722e707567782e6f72672f73766261636b656e642f796969322d636f6e736f6c652f6c6963656e7365)](https://packagist.org/packages/svbackend/yii2-console)

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

[](#installation)

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

Either run

```
php composer require svbackend/yii2-console ">=1.2@dev"

```

or add

```
"svbackend/yii2-console": ">=1.2@dev"

```

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

3247d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

migrationyii2commandSample Data

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/svbackend-yii2-console/health.svg)](https://phpackages.com/packages/svbackend-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)
