2017 © Pedro Peláez
 

library slim-booboo

Booboo's integration for Slim3.0 framework

image

marcoazn89/slim-booboo

Booboo's integration for Slim3.0 framework

  • Thursday, September 8, 2016
  • by marcoazn89
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,418 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 10 % Grown

The README.md

slim-booboo

BooBoo's integration for Slim3.0 framework, (*1)

Install via Composer

composer require marcoazn89/slim-booboo:dev-master, (*2)

Set up

$app->add(new \SlimBooboo\Middleware());

Overwrite default templates

// configArray overwrites the default error templates. Example:
$configArray= [
    'html'  =>  'some/folder/html.php',
    'json'  =>  'some/folder/json.php'
];

$app->add(new \SlimBooboo\Middleware($configArray));

Example

require '../vendor/autoload.php';

$app = new \Slim\App();

$app->add(new \SlimBooboo\Middleware());

$app->get('/exception/', function($req, $res, $arg) {
    throw new Exception("Error Processing Request", 1);
});

$app->get('/error/', function($req, $res, $arg) {
    $a->B();
});

$app->run();

BooBoo! BooBoo!, (*3)

The Versions

08/09 2016

dev-master

9999999-dev https://github.com/marcoazn89/slim-booboo

Booboo's integration for Slim3.0 framework

  Sources   Download

MIT

The Requires

 

php library exception slim error handling booboo