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

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

toriphes/yii2-console-runner
============================

Runs console command in yii web application

1.2.1(7y ago)29240.1k↓16.9%9BSD-3-ClausePHP

Since Jun 13Pushed 7y ago5 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

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

[](#yii2-console-runner)

[![Latest Stable Version](https://camo.githubusercontent.com/2050b83c6f65cd7e382364974bab7a1c1bebc23aad94d0d83f64407e2d9720e1/68747470733a2f2f706f7365722e707567782e6f72672f746f7269706865732f796969322d636f6e736f6c652d72756e6e65722f762f737461626c65)](https://packagist.org/packages/toriphes/yii2-console-runner) [![Total Downloads](https://camo.githubusercontent.com/ad9c497c7c685d63c0017c09eb59f419a6a2b04443a4e5776f4e0a45ba79ba19/68747470733a2f2f706f7365722e707567782e6f72672f746f7269706865732f796969322d636f6e736f6c652d72756e6e65722f646f776e6c6f616473)](https://packagist.org/packages/toriphes/yii2-console-runner) [![Latest Unstable Version](https://camo.githubusercontent.com/9f24b657400fe7b35bb5aa5966e5ed9edb4009b2919ea28edf4011a5a4097424/68747470733a2f2f706f7365722e707567782e6f72672f746f7269706865732f796969322d636f6e736f6c652d72756e6e65722f762f756e737461626c65)](https://packagist.org/packages/toriphes/yii2-console-runner) [![License](https://camo.githubusercontent.com/bf9f4710a15de907a80f8d88757e5834a78e91c1dca220a65e75878c47d8ab80/68747470733a2f2f706f7365722e707567782e6f72672f746f7269706865732f796969322d636f6e736f6c652d72756e6e65722f6c6963656e7365)](https://packagist.org/packages/toriphes/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 toriphes/yii2-console-runner "*"

```

or add

```
"toriphes/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 toriphes\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

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~390 days

Total

4

Last Release

2822d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4192159?v=4)[Giulio Ganci](/maintainers/toriphes)[@toriphes](https://github.com/toriphes)

---

Top Contributors

[![toriphes](https://avatars.githubusercontent.com/u/4192159?v=4)](https://github.com/toriphes "toriphes (8 commits)")[![rickydj](https://avatars.githubusercontent.com/u/946876?v=4)](https://github.com/rickydj "rickydj (1 commits)")[![thyseus](https://avatars.githubusercontent.com/u/654271?v=4)](https://github.com/thyseus "thyseus (1 commits)")

---

Tags

consolewebyii2extensionapplicationrunner

### Embed Badge

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

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

###  Alternatives

[samdark/yii2-webshell

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

22981.5k1](/packages/samdark-yii2-webshell)[vova07/yii2-console-runner-extension

An extension for running console commands on background in Yii framework.

88202.2k2](/packages/vova07-yii2-console-runner-extension)[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)
