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 today

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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

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

2140d 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

[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)

PHPackages © 2026

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