Download the PHP package middlewares/debugbar without Composer
On this page you can find all versions of the php package middlewares/debugbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download middlewares/debugbar
More information about middlewares/debugbar
Files in middlewares/debugbar
Package debugbar
Short Description Middleware to insert PHP DebugBar automatically in html responses
License MIT
Homepage https://github.com/middlewares/debugbar
Informations about the package debugbar
middlewares/debugbar
Middleware to insert PHP DebugBar automatically in html responses.
Requirements
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
Installation
This package is installable and autoloadable via Composer as middlewares/debugbar.
Example
Usage
You can provide a DebugBar\DebugBar
instance to the constructor or an instance of DebugBar\StandardDebugBar
will be created automatically. Optionally, you can provide a Psr\Http\Message\ResponseFactoryInterface
and Psr\Http\Message\StreamFactoryInterface
to create the new responses. If it's not defined, Middleware\Utils\Factory will be used to detect it automatically.
captureAjax
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.
Please see CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.
All versions of debugbar with dependencies
maximebf/debugbar Version ^1.13
middlewares/utils Version ^3.0 || ^4.0
psr/http-server-middleware Version ^1.0