Download the PHP package sourceability/console-toolbar-bundle without Composer
On this page you can find all versions of the php package sourceability/console-toolbar-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sourceability/console-toolbar-bundle
More information about sourceability/console-toolbar-bundle
Files in sourceability/console-toolbar-bundle
Package console-toolbar-bundle
Short Description This bundle enables displaying the web toolbar in the console/terminal.
License MIT
Homepage https://github.com/sourceability/console-toolbar-bundle
Informations about the package console-toolbar-bundle
sourceability/console-toolbar-bundle
Render the symfony profiler toolbar in your terminal.

Each panel links to the corresponding web profiler page. Make sure to use a terminal that support hyperlinks to leverage this feature.
Installation
Install the bundle using composer:
Enable the bundle by updating config/bundles.php
:
Configure the bundle in config/packages/{dev,test}/sourceability_console_toolbar.yaml
:
If your application is not exposed at http://localhost
exactly, make sure that
you've configured the router request context for your environment.
By default, the profiler does not always run in the test
environment.
You can enable it like this:
Also add web profiler routes in config/routes/test/web_profiler.yaml
Behat
This bundle becomes really useful when writing/debugging behat scenarios.
First enable the behat extension by adding the following to your behat configuration:
This will display the console toolbar whenever a new symfony profile is detected:

PHPUnit
Add the following to your phpunit.xml
configuration:

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

This feature requires sourceability/instrumentation with the following bundle configuration:
All versions of console-toolbar-bundle with dependencies
symfony/console Version ^4.4 || ^5.0 || ^6.0
symfony/dom-crawler Version ^4.4 || ^5.0 || ^6.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0
symfony/twig-bundle Version ^4.4 || ^5.0 || ^6.0
symfony/web-profiler-bundle Version ^4.4 || ^5.0 || ^6.0