Download the PHP package mostafasy/mezzio-debugbar without Composer
On this page you can find all versions of the php package mostafasy/mezzio-debugbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mostafasy/mezzio-debugbar
More information about mostafasy/mezzio-debugbar
Files in mostafasy/mezzio-debugbar
Package mezzio-debugbar
Short Description Middleware to insert PHP DebugBar automatically in html responses
License MIT
Homepage https://github.com/mostafasy/mezzio-debugbar
Informations about the package mezzio-debugbar
-forked from : https://github.com/middlewares/debugbar
-forked from : https://github.com/php-middleware/phpdebugbar
mezzio/debugbar
Middleware to insert PHP DebugBar automatically in html responses for Mezzio Framwork.
Requirements
- PHP >= 7.4
Installation
Example
This package supplies a config provider, which could be added to your config/config.php when using laminas-config-aggregator or mezzio-config-manager. However, because it should only be enabled in development, we recommend creating a "local" configuration file (e.g., config/autoload/php-debugbar.local.php) when you need to enable it, with the following contents:
Disable config
Sometimes you want to have control when enable or disable PHP Debug Bar:
- We allow you to disable attaching phpdebugbar using X-Disable-Debug-Bar: true header, cookie or request attribute.
- or you can configure in config:
captureAjax conifg
Use this option to capture ajax requests and send the data in the headers. More info about AJAX and Stacked data. By default it's disabled.
inline
Set true to dump the js/css code inline in the html. This fixes (or mitigate) some issues related with loading the debugbar assets.
renderOptions
Use this option to pass render options to the debugbar as an array. A list of available options can be found at https://github.com/maximebf/php-debugbar/blob/master/src/DebugBar/JavascriptRenderer.php#L132
An example usage would be to pass a new location for the base_url
so that you can rewrite the location of the files needed to render the debug bar. This can be used with symlinks, .htaccess or routes to the files to ensure the debugbar files are accessible.
File Storage
It will collect data as json files under the specified directory (which has to be writable).you can configure as :
pdo Storage
It will collect data and saved to database you can configure as :
please note you have to execute sql schema pdo-sql-Schema
Doctrine Storage
It will collect data and saved to database by using Doctine you can configure as :
you have to execute sql schema: doctrine-sql-Schema
Route Colloctor
It will collect the Route Informations. we can add the collectors to config as the following:
Example of Route config:
Please see CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.
All versions of mezzio-debugbar with dependencies
maximebf/debugbar Version 1.22.3
laminas/laminas-diactoros Version ^2.3
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/container Version ^1.0 || ^2.0
psr/http-message Version ^1.0
psr/http-factory Version ^1.0