PHPackages                             c006/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. [CLI &amp; Console](/categories/cli)
4. /
5. c006/yii2-console

ActiveYii2-extension[CLI &amp; Console](/categories/cli)

c006/yii2-console
=================

An alternative to yii migrate

v2.1(5y ago)038MITPHP

Since Aug 26Pushed 5y ago1 watchersCompare

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

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

Yii2 Console
============

[](#yii2-console)

Overview
--------

[](#overview)

An alternative console to `php yii migrate`

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-source "c006/yii2-console" "*"

```

or add

```
"c006/yii2-console": "*"

```

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

Required
--------

[](#required)

**console/config/main.php**

>

```
    'modules'    => [
        'migrate2' => [
            'class' => 'c006\console\Module',
        ],
    ],

```

Usage
-----

[](#usage)

Easy to use!

No path or history required, just the migration class name. Default action is "up"

>

```
php yii migrate2 m_0000_0000_my_extension

```

>

```
php yii migrate2/down m_0000_0000_my_extension

```

>

```
php yii migrate2/custom m_0000_0000_my_extension

```

Notes
-----

[](#notes)

- Use after initial migrate
- Only works with vendors

Comments / Suggestions
----------------------

[](#comments--suggestions)

Please provide any helpful feedback or requests.

Thanks.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Total

4

Last Release

2146d ago

Major Versions

v1.1 → v2.02017-09-19

### Community

Maintainers

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

---

Top Contributors

[![c006](https://avatars.githubusercontent.com/u/7686064?v=4)](https://github.com/c006 "c006 (2 commits)")

---

Tags

consoleyii2extensionmigrate

### Embed Badge

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

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

###  Alternatives

[samdark/yii2-webshell

A web shell that allows to run yii console commands and create your own commands.

22981.5k](/packages/samdark-yii2-webshell)[toriphes/yii2-console-runner

Runs console command in yii web application

29240.1k](/packages/toriphes-yii2-console-runner)[fedemotta/yii2-cronjob

Yii2 extension to help in the creation of automated console scripts

2233.5k](/packages/fedemotta-yii2-cronjob)[trntv/yii2-tactician

A simple, flexible command bus. This package provide it's integration with Yii2

1458.3k](/packages/trntv-yii2-tactician)

PHPackages © 2026

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