The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Using BooBoo

#Instantiating BooBoo

The main object that you need to instantiate is League\BooBoo\BooBoo. This object takes care of setting the error handler, as well as handling errors and exceptions. It takes optional arguments during construction for handlers and formatters.

$booboo = new League\BooBoo\BooBoo();
$booboo->register(); // Registers the handlers

It’s very important to call BooBoo::register() or the object won’t register itself as PHP’s error handler.

NOTE: A formatter is required in order to register the error handler. You can use the included Null handler to ignore all errors.