PHPackages                             seiffert/console-extra-bundle - 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. seiffert/console-extra-bundle

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

seiffert/console-extra-bundle
=============================

This bundle adds support for commands defined as DI services

1.0.0(13y ago)201.4k1[1 issues](https://github.com/seiffert/console-extra-bundle/issues)CC-BY-SA-3.0PHPPHP &gt;=5.3.3

Since Dec 8Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

SeiffertConsoleExtraBundle
==========================

[](#seiffertconsoleextrabundle)

This bundle adds support for commands defined as DI services.

[![Build Status](https://camo.githubusercontent.com/6eeae71d6739a9f960a668efcec01d9cc2712fbcbc74c09349b35a8910de19ee/68747470733a2f2f7472617669732d63692e6f72672f73656966666572742f636f6e736f6c652d65787472612d62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/seiffert/console-extra-bundle)

Setup
-----

[](#setup)

Require the package via composer:

`composer.json`:

```
    "require": {
        ...
        "seiffert/console-extra-bundle": "1.0.0",
        ...
    }

```

Activate the bundle in your AppKernel:

`app/AppKernel.php`:

```
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Seiffert\ConsoleExtraBundle\SeiffertConsoleExtraBundle(),
            ...
        );
        ...
    }

```

Disable automatic command registration in each of your bundles defining commands by overriding `Bundle::registerCommands()` with an empty implementation:

`src\You\YourBundle\YouYourBundle.php`:

```
    public function registerCommands(Application $application)
    {
        // commands are registered by SeiffertConsoleExtraBundle
    }

```

Usage
-----

[](#usage)

After following the above setup steps, you can start defining all your commands as services. Command services are being identified by a special tag `console.command`:

`src\You\YourBundle\Resources\config\services.yml`:

```
parameters:
    acme_demo.test_command.class: Acme\DemoBundle\Command\TestCommand

services:
    acme_demo.test_command:
        class: %acme_demo.test_command.class%
        tags:
            - { "name": "console.command" }

```

Your commands will be added to the dependency injection container. This enables you to write commands that have their dependencies injected and therefore are truly unit-testable.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d576bda5c70255f203244318b1b634fb94131d5ce94becb13ae39f583f3a492?d=identicon)[PSeiffert](/maintainers/PSeiffert)

---

Top Contributors

[![seiffert](https://avatars.githubusercontent.com/u/1111118?v=4)](https://github.com/seiffert "seiffert (4 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (1 commits)")

### Embed Badge

![Health badge](/badges/seiffert-console-extra-bundle/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[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)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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