dev-master
9999999-dev https://github.com/marcoazn89/slim-boobooBooboo's integration for Slim3.0 framework
MIT
The Requires
- php >=5.3.0
- marcoazn89/booboo ^2.0
php library exception slim error handling booboo
Wallogit.com
2017 © Pedro Peláez
Booboo's integration for Slim3.0 framework
BooBoo's integration for Slim3.0 framework, (*1)
composer require marcoazn89/slim-booboo:dev-master, (*2)
$app->add(new \SlimBooboo\Middleware());
// configArray overwrites the default error templates. Example:
$configArray= [
'html' => 'some/folder/html.php',
'json' => 'some/folder/json.php'
];
$app->add(new \SlimBooboo\Middleware($configArray));
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();
, (*3)
Booboo's integration for Slim3.0 framework
MIT
php library exception slim error handling booboo