PHP code example of juliangut / slim-booboo-middleware

1. Go to this page and download the library: Download juliangut/slim-booboo-middleware 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/ */

    

juliangut / slim-booboo-middleware example snippets




use Slim\Slim;
use Jgut\Slim\Middleware\BooBooMiddleware;

$app = new Slim();
$app->add((new BooBooMiddleware())
    ->addFormatter('command-line')
    ->addFormatter('\League\BooBoo\Formatter\NullFormatter', E_NOTICE)
);

use Slim\Slim;
use Jgut\Slim\Middleware\BooBooMiddleware;

$yourHandler = new \yourHandler();

$app = new Slim();
$app->add((new BooBooMiddleware())
    ->addFormatter('null', E_NOTICE)
    ->addHandler($yourHandler)
);

php composer.phar