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

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

huynhtuvinh87/console
=====================

Yii run console

02PHP

Since Sep 15Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-console-runner)

This is component for running console command in yii2 web applications

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

[](#installation)

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

To install, either run

```
$ composer require huynhtuvinh87/yii2-console-runner "*"

```

or add

```
"huynhtuvinh87/yii2-console-runner": "*"

```

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

Usage
-----

[](#usage)

You can user yii2-console-runner importing the class file

```
use huynhtuvinh87\console\Runner;
$output = '';
$runner = new Runner();
$runner->run('controller/action param1 param2 ...', $output);
echo $output; //prints the command output
```

or using it like an application component:

```
//you config file
'components' => [
    'consoleRunner' => [
        'class' => 'toriphes\console\Runner'
    ]
]
```

```
//some application file
$output = '';
Yii::$app->consoleRunner->run('controller/action param1 param2 ...', $output);
echo $output; //prints the command output
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ba26942f0e23f8bfe71d862c05b1380fc55c0d795d20d8d6a090000f4004e38?d=identicon)[huynhtuvinh87](/maintainers/huynhtuvinh87)

---

Top Contributors

[![huynhtuvinh87](https://avatars.githubusercontent.com/u/4105022?v=4)](https://github.com/huynhtuvinh87 "huynhtuvinh87 (9 commits)")

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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