https://github.com/mako-framework/toolbar
Debug toolbar for the Mako framework.
https://github.com/mako-framework/toolbar
mako-framework mako-package php
Last synced: about 1 year ago
JSON representation
Debug toolbar for the Mako framework.
- Host: GitHub
- URL: https://github.com/mako-framework/toolbar
- Owner: mako-framework
- License: bsd-3-clause
- Created: 2014-06-27T12:14:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T10:00:11.000Z (over 1 year ago)
- Last Synced: 2025-04-12T20:52:14.488Z (about 1 year ago)
- Topics: mako-framework, mako-package, php
- Language: PHP
- Homepage:
- Size: 120 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mako debug toolbar
[](https://github.com/mako-framework/toolbar/actions/workflows/static-analysis.yml)
## 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 `` tags.