PHP code example of league / booboo

1. Go to this page and download the library: Download league/booboo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

league / booboo example snippets




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



$booboo->pushFormatter(new League\BooBoo\Formatter\HtmlFormatter());



$html = new League\BooBoo\Formatter\HtmlFormatter();
$null = new League\BooBoo\Formatter\NullFormatter();

$html->setErrorLimit(E_ERROR | E_WARNING | E_USER_ERROR | E_USER_WARNING);
$null->setErrorLimit(E_ALL);

$booboo->pushFormatter($null);
$booboo->pushFormatter($html);