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

ActiveLibrary[CLI &amp; Console](/categories/cli)

task/console
============

Utilities for working with Symfony's Console component and Task

v0.4.0(10y ago)217.3k13MITPHP

Since Apr 23Pushed 10y ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (6)Used By (3)

task/console
============

[](#taskconsole)

[![Build Status](https://camo.githubusercontent.com/914fbdee94a742348c292d52c9b3fef448046eb312793de87bc756c193210a27/68747470733a2f2f7472617669732d63692e6f72672f7461736b7068702f636f6e736f6c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/taskphp/console)[![Coverage Status](https://camo.githubusercontent.com/b185e77c004ba6dd7be55c6114995df92be3cdb5be75966c40849453992d1399/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7461736b7068702f636f6e736f6c652f62616467652e706e67)](https://coveralls.io/r/taskphp/console)

Example
=======

[](#example)

```
use Some\Application;
use Task\Plugin\Console\ApplicationPlugin;

$project->inject(function ($container) {
    $app = new Application;
    $container['app'] = new ApplicationPlugin($app)
});

$project->addTask('run', ['app', function ($app) {
    $app->command('run')
        ->setVerbose(true)
        ->pipe($this->getOutput());
}]);
```

Installation
============

[](#installation)

Add to `composer.json`:

```
...
"require-dev": {
    "task/console" "~0.2"
}
...
```

Usage
=====

[](#usage)

`ApplicationPlugin::command()` returns a `CommandRunner` which dynamically builds up command arguments and options with setter methods.

Given the following `InputDefinition`:

```
[
    new InputOption('option', 'o', InputOption::VALUE_REQUIRED),
    new InputOption('flag', 'f', InputOption::VALUE_NONE),
    new InputArgument('arg', InputArgument::REQUIRED)
]
```

```
$project->addTask('run', ['app', function ($app) {
    $app->command('run')
        ->setOption('foo')
        ->setFlag(true)
        ->setArg('wow')
        ->pipe($this->getOutput());
}]);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~126 days

Total

5

Last Release

3905d ago

### Community

Maintainers

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

---

Top Contributors

[![mbfisher](https://avatars.githubusercontent.com/u/1162326?v=4)](https://github.com/mbfisher "mbfisher (12 commits)")[![bullidium](https://avatars.githubusercontent.com/u/2648449?v=4)](https://github.com/bullidium "bullidium (1 commits)")

### Embed Badge

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

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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