{"id":20284848,"url":"https://github.com/sourceability/console-toolbar-bundle","last_synced_at":"2026-03-11T12:16:50.192Z","repository":{"id":37862541,"uuid":"364324259","full_name":"sourceability/console-toolbar-bundle","owner":"sourceability","description":"Render the symfony profiler toolbar in your terminal.","archived":false,"fork":false,"pushed_at":"2023-02-28T14:18:05.000Z","size":77,"stargazers_count":55,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T16:32:13.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourceability.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-04T16:46:54.000Z","updated_at":"2024-03-22T12:59:50.000Z","dependencies_parsed_at":"2024-11-14T14:34:51.675Z","dependency_job_id":null,"html_url":"https://github.com/sourceability/console-toolbar-bundle","commit_stats":{"total_commits":39,"total_committers":8,"mean_commits":4.875,"dds":"0.23076923076923073","last_synced_commit":"7dc0cbfb641b59ae84939b37de8f74ea452f1f8b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/sourceability/console-toolbar-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceability%2Fconsole-toolbar-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceability%2Fconsole-toolbar-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceability%2Fconsole-toolbar-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceability%2Fconsole-toolbar-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourceability","download_url":"https://codeload.github.com/sourceability/console-toolbar-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourceability%2Fconsole-toolbar-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30380935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T14:22:24.610Z","updated_at":"2026-03-11T12:16:50.173Z","avatar_url":"https://github.com/sourceability.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sourceability/console-toolbar-bundle\n\nRender the symfony profiler toolbar in your terminal.\n\n\u003cimg width=\"1375\" alt=\"Screen Shot 2021-05-18 at 17 52 13\" src=\"https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png\"\u003e\n\nEach panel links to the corresponding web profiler page.\nMake sure to use a [terminal that support hyperlinks][hyperlink_terminals] to leverage this feature.\n\n## Installation\n\nInstall the bundle using composer:\n\n```sh\n$ composer require --dev sourceability/console-toolbar-bundle\n```\n\nEnable the bundle by updating `config/bundles.php`:\n\n```php\nreturn [\n    Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle::class =\u003e ['all' =\u003e true],\n    // ...\n    FriendsOfBehat\\SymfonyExtension\\Bundle\\FriendsOfBehatSymfonyExtensionBundle::class =\u003e ['dev' =\u003e true, 'test' =\u003e true],\n    Sourceability\\ConsoleToolbarBundle\\SourceabilityConsoleToolbarBundle::class =\u003e ['dev' =\u003e true, 'test' =\u003e true],\n];\n```\n\nConfigure the bundle in `config/packages/{dev,test}/sourceability_console_toolbar.yaml`:\n\n```yaml\nsourceability_console_toolbar:\n    toolbar:\n        hidden_panels:\n            - config\n            - form\n            - validator\n            - logger\n```\n\nIf your application is not exposed at `http://localhost` exactly, make sure that\n[you've configured the router request context][symfony_doc_request_context] for your environment.\n\nBy default, the profiler does not always run in the `test` environment.\nYou can enable it like this:\n\n```diff\n--- a/config/packages/test/web_profiler.yaml\n+++ b/config/packages/test/web_profiler.yaml\n@@ -3,4 +3,4 @@ web_profiler:\n     intercept_redirects: false\n\n framework:\n-    profiler: { collect: false }\n+    profiler: { enabled:true, collect: true, only_exceptions: false }\n```\n\nAlso add web profiler routes in `config/routes/test/web_profiler.yaml`\n\n```yaml\nweb_profiler_wdt:\n    resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'\n    prefix: /_wdt\n\nweb_profiler_profiler:\n    resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'\n    prefix: /_profiler\n```\n\n## Behat\n\nThis bundle becomes really useful when writing/debugging behat scenarios.\n\nFirst enable the behat extension by adding the following to your behat configuration:\n\n```yaml\ndefault:\n    extensions:\n        FriendsOfBehat\\SymfonyExtension: ~\n        Sourceability\\ConsoleToolbarBundle\\Behat\\SymfonyToolbarExtension: ~\n```\n\nThis will display the console toolbar whenever a new symfony profile is detected:\n\n\u003cimg width=\"1375\" alt=\"Screen Shot 2021-05-18 at 17 52 13\" src=\"https://user-images.githubusercontent.com/611271/118683608-cf759600-b801-11eb-98b5-715df3d26452.png\"\u003e\n\n## PHPUnit\n\nAdd the following to your `phpunit.xml` configuration:\n\n```xml\n    \u003cextensions\u003e\n        \u003cextension class=\"Sourceability\\ConsoleToolbarBundle\\PHPUnit\\ConsoleToolbarExtension\"\u003e\n            \u003carguments\u003e\n                \u003cboolean\u003efalse\u003c/boolean\u003e \u003c!-- always show, if false use: TOOLBAR=true phpunit ...--\u003e\n                \u003cinteger\u003e4\u003c/integer\u003e \u003c!-- Indentation --\u003e\n            \u003c/arguments\u003e\n        \u003c/extension\u003e\n    \u003c/extensions\u003e\n```\n\n\u003cimg width=\"1242\" alt=\"Screen Shot 2021-05-18 at 17 46 52\" src=\"https://user-images.githubusercontent.com/611271/118682929-321a6200-b801-11eb-8390-90e2c7056c95.png\"\u003e\n\n## Console\n\n`bin/console` now has a new global option `--toolbar`:\n\n\u003cimg width=\"1242\" alt=\"Screen Shot 2021-05-18 at 18 02 22\" src=\"https://user-images.githubusercontent.com/611271/118685271-3f385080-b803-11eb-95f0-7d68c0e96857.png\"\u003e\n\nThis feature requires [sourceability/instrumentation][sourceability_instrumentation] with the following bundle configuration:\n\n```yaml\nsourceability_instrumentation:\n    profilers:\n        symfony:\n            enabled: true\n    listeners:\n        command:\n            enabled: true\n```\n\n[hyperlink_terminals]: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda\n[sourceability_instrumentation]: https://github.com/sourceability/instrumentation\n[symfony_doc_request_context]: https://symfony.com/doc/4.4/routing.html#generating-urls-in-commands\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceability%2Fconsole-toolbar-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourceability%2Fconsole-toolbar-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourceability%2Fconsole-toolbar-bundle/lists"}