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

ActiveLibrary

sourceability/console-toolbar-bundle
====================================

This bundle enables displaying the web toolbar in the console/terminal.

0.1.13(3y ago)55419.4k—0%4[2 issues](https://github.com/sourceability/console-toolbar-bundle/issues)MITPHPPHP ^7.2 || ^8.0

Since May 18Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (12)Versions (15)Used By (0)

sourceability/console-toolbar-bundle
====================================

[](#sourceabilityconsole-toolbar-bundle)

Render the symfony profiler toolbar in your terminal.

[![Screen Shot 2021-05-18 at 17 52 13](https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png)](https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png)

Each panel links to the corresponding web profiler page. Make sure to use a [terminal that support hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) to leverage this feature.

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

[](#installation)

Install the bundle using composer:

```
$ composer require --dev sourceability/console-toolbar-bundle
```

Enable the bundle by updating `config/bundles.php`:

```
return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    // ...
    FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['dev' => true, 'test' => true],
    Sourceability\ConsoleToolbarBundle\SourceabilityConsoleToolbarBundle::class => ['dev' => true, 'test' => true],
];
```

Configure the bundle in `config/packages/{dev,test}/sourceability_console_toolbar.yaml`:

```
sourceability_console_toolbar:
    toolbar:
        hidden_panels:
            - config
            - form
            - validator
            - logger
```

If your application is not exposed at `http://localhost` exactly, make sure that [you've configured the router request context](https://symfony.com/doc/4.4/routing.html#generating-urls-in-commands) for your environment.

By default, the profiler does not always run in the `test` environment. You can enable it like this:

```
--- a/config/packages/test/web_profiler.yaml
+++ b/config/packages/test/web_profiler.yaml
@@ -3,4 +3,4 @@ web_profiler:
     intercept_redirects: false

 framework:
-    profiler: { collect: false }
+    profiler: { enabled:true, collect: true, only_exceptions: false }
```

Also add web profiler routes in `config/routes/test/web_profiler.yaml`

```
web_profiler_wdt:
    resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
    prefix: /_wdt

web_profiler_profiler:
    resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
    prefix: /_profiler
```

Behat
-----

[](#behat)

This bundle becomes really useful when writing/debugging behat scenarios.

First enable the behat extension by adding the following to your behat configuration:

```
default:
    extensions:
        FriendsOfBehat\SymfonyExtension: ~
        Sourceability\ConsoleToolbarBundle\Behat\SymfonyToolbarExtension: ~
```

This will display the console toolbar whenever a new symfony profile is detected:

[![Screen Shot 2021-05-18 at 17 52 13](https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png)](https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png)

PHPUnit
-------

[](#phpunit)

Add the following to your `phpunit.xml` configuration:

```

                false
                4

```

[![Screen Shot 2021-05-18 at 17 46 52](https://user-images.githubusercontent.com/611271/118682929-321a6200-b801-11eb-8390-90e2c7056c95.png)](https://user-images.githubusercontent.com/611271/118682929-321a6200-b801-11eb-8390-90e2c7056c95.png)

Console
-------

[](#console)

`bin/console` now has a new global option `--toolbar`:

[![Screen Shot 2021-05-18 at 18 02 22](https://user-images.githubusercontent.com/611271/118685271-3f385080-b803-11eb-95f0-7d68c0e96857.png)](https://user-images.githubusercontent.com/611271/118685271-3f385080-b803-11eb-95f0-7d68c0e96857.png)

This feature requires [sourceability/instrumentation](https://github.com/sourceability/instrumentation) with the following bundle configuration:

```
sourceability_instrumentation:
    profilers:
        symfony:
            enabled: true
    listeners:
        command:
            enabled: true
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.8% 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 ~45 days

Total

14

Last Release

1231d ago

PHP version history (3 changes)0.1.0PHP ^7.4 || ^8.0

0.1.2PHP ^7.1 || ^8.0

0.1.8PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/014b3653b1f38cb85fa553f23e32a10a9584fee5dc80c7be2d01900202045033?d=identicon)[AdrienBrault](/maintainers/AdrienBrault)

---

Top Contributors

[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (31 commits)")[![rodion-k](https://avatars.githubusercontent.com/u/2526460?v=4)](https://github.com/rodion-k "rodion-k (3 commits)")[![joanna-bak-sourceability](https://avatars.githubusercontent.com/u/68014233?v=4)](https://github.com/joanna-bak-sourceability "joanna-bak-sourceability (2 commits)")[![magikid](https://avatars.githubusercontent.com/u/115515?v=4)](https://github.com/magikid "magikid (2 commits)")[![rpg600](https://avatars.githubusercontent.com/u/956326?v=4)](https://github.com/rpg600 "rpg600 (1 commits)")[![baldurrensch](https://avatars.githubusercontent.com/u/871417?v=4)](https://github.com/baldurrensch "baldurrensch (1 commits)")[![nesl247](https://avatars.githubusercontent.com/u/1037526?v=4)](https://github.com/nesl247 "nesl247 (1 commits)")[![ro0NL](https://avatars.githubusercontent.com/u/1047696?v=4)](https://github.com/ro0NL "ro0NL (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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