mako / toolbar
A debug toolbar for the Mako Framework
Installs: 17 770
Dependents: 0
Suggesters: 2
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=8.4.0
- doctrine/sql-formatter: ^1.5
- symfony/var-dumper: ^7.2
Requires (Dev)
- mako/framework: ^11.0.0
- monolog/monolog: ^3.8
- phpstan/phpstan: ^2.0.3
- dev-master / 8.1.x-dev
- 8.0.x-dev
- 8.0.0
- 7.0.x-dev
- 7.0.0
- 6.0.x-dev
- 6.0.1
- 6.0.0
- 5.0.x-dev
- 5.0.2
- 5.0.1
- 5.0.0
- 4.0.x-dev
- 4.0.2
- 4.0.1
- 4.0.0
- 3.0.x-dev
- 3.0.0
- 2.4.x-dev
- 2.4.0
- 2.3.x-dev
- 2.3.0
- 2.2.x-dev
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.x-dev
- 2.1.0
- 2.0.x-dev
- 2.0.1
- 2.0.0
- 1.4.x-dev
- 1.4.0
- 1.2.x-dev
- 1.2.0
- 1.1.x-dev
- 1.1.0
- 1.0.x-dev
- 1.0.0
This package is auto-updated.
Last update: 2025-01-08 17:45:03 UTC
README
Requirements
Mako 11.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/html
and a body that includes a set of<body></body>
tags.