middlewares/debugbar

Name: debugbar

Owner: Middlewares

Description: PSR-15 middleware to insert PHP DebugBar automatically in html responses

Created: 2016-10-08 08:16:08.0

Updated: 2018-03-10 15:56:18.0

Pushed: 2018-01-25 22:19:30.0

Homepage: null

Size: 29

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

middlewares/debugbar

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabs Insight

Middleware to insert PHP DebugBar automatically in html responses.

Requirements
Installation

This package is installable and autoloadable via Composer as middlewares/debugbar.

oser require middlewares/debugbar
Example
patcher = new Dispatcher([
new Middlewares\Debugbar()


ponse = $dispatcher->dispatch(new ServerRequest());
Options
__construct(DebugBar\DebugBar $debugbar = null)

To use a custom DebugBar instance. If it's not defined, an intance of DebugBar\StandardDebugBar will be created.

captureAjax(bool $captureAjax = true)

Set true to capture ajax requests and send the data in the headers (disabled by default).

inline(bool $inline = true)

Set true to dump the js/css code inline in the html.


Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.