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

AbandonedArchivedSymfony-bundle[CLI &amp; Console](/categories/cli)

mlo/console-bundle
==================

Symfony Bundle for interacting with the Symfony container through the command line

v2.0.0(5y ago)323.2kMITPHP

Since Jul 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mloberg/ConsoleBundle)[ Packagist](https://packagist.org/packages/mlo/console-bundle)[ RSS](/packages/mlo-console-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (6)Used By (0)

ConsoleBundle
=============

[](#consolebundle)

Interact with Symfony's container through the command line. Uses [Psysh](http://psysh.org/)for the console.

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

[](#installation)

```
composer require --dev mlo/console-bundle

```

If you aren't using Symfony Flex, you will need to register the bundle in `AppKernel.php` in the `dev` and/or `test` environment.

```
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    $bundles[] = new Mlo\ConsoleBundle\MloConsoleBundle();
}
```

If you are using Symfony 4 or lower, require the [v1](https://github.com/mloberg/ConsoleBundle/tree/v1)version of this package.

```
composer require --dev mlo/console-bundle:^1.0

```

Usage
-----

[](#usage)

```
bin/console tinker

```

This will drop you in a Psysh shell with the variables `$container`, `$kernel`and `$this`, which references the container.

Adding Variables
----------------

[](#adding-variables)

You can add custom variables to the shell scope with the following config:

```
mlo_console:
    variables:
        debug: "%kernel.debug%"
        em: "@doctrine.orm.entity_manager"
```

Now you will have a `$debug` variable with the value of the *kernel.debug*parameter and `$em` with your entity manager.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

5

Last Release

2094d ago

Major Versions

v1.x-dev → v2.0.02020-08-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b7bb02bd7aebd8ca0d722ceb4162a00dc9b0e523ce9b5eb7b88d8fef6bff43f?d=identicon)[mloberg](/maintainers/mloberg)

---

Tags

psyshsymfony-bundle

### Embed Badge

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

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

###  Alternatives

[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[civicrm/cv

CLI tool for CiviCRM

4219.8k](/packages/civicrm-cv)[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)
