awesomite/error-dumper

Pretty preview of errors and exceptions

v0.13.5 2017-08-30 22:01 UTC

README

Latest Stable Version Latest Unstable Version Codacy Badge Coverage Status Build Status

Debugger integrated with PhpStorm. ErrorDumper allows you to catch all kinds of errors and exceptions in PHP. You will be able to serialize, restore and display them later in readable form. @See example.

Table of contents

Installation

composer require awesomite/error-dumper

How to use?

<?php

use Awesomite\ErrorDumper\ErrorDumper;

ErrorDumper::createDevHandler()->register();

Read quick start.

Screenshots

HTML

Exception displayed as HTML

CLI

Exception displayed in terminal

Versioning

The version numbers follow the Semantic Versioning 2.0.0 scheme.

Examples

To run examples you need at least PHP 5.4.

composer update --dev
bin/webserver.sh

Execute above commands and open in your browser url http://localhost:8001. To run example in terminal, execute bin/test.php.

Content Security Policy

This library uses *.js files hosted on maxcdn.bootstrapcdn.com and code.jquery.com (@see \Awesomite\ErrorDumper\Views\ViewHtml::getResources). Add those domains to your Content-Security-Policy header during display errors.

Symfony integration

Error Dumper Bundle