mako / toolbar
A debug toolbar for the Mako Framework
9.0.0
2026-01-05 11:42 UTC
Requires
- php: >=8.5.0
- doctrine/sql-formatter: ^1.5
- symfony/var-dumper: ^8.0
Requires (Dev)
- mako/framework: ^12.0.0
- mockery/mockery: ^1.6.12
- monolog/monolog: ^3.10
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.5
This package is auto-updated.
Last update: 2026-05-20 21:09:33 UTC
README
Requirements
Mako 12.0 or greater.
Installation
Install the package using the following composer command:
composer require mako/toolbar
Next, add the mako\toolbar\ToolbarPackage package to your app/config/application.php config file.
You should make sure that the middleware gets executed first to ensure that the toolbar is able to collect all the information about your application.
$dispatcher->setMiddlewarePriority(ToolbarMiddleware::class, 1);
You can now add the middleware to the routes of your choice or make it global if you want to apply it to all your routes.
$dispatcher->registerGlobalMiddleware(ToolbarMiddleware::class);
The middleware will only append the toolbar to responses with a content type of
text/htmland a body that includes a set of<body></body>tags.