2017 © Pedro Peláez
 

library slim-booboo-middleware

Slim Framework BooBoo middleware

image

juliangut/slim-booboo-middleware

Slim Framework BooBoo middleware

  • Tuesday, April 7, 2015
  • by juliangut
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Code Climate Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads, (*1)

Juliangut Slim Framework BooBoo handler middleware

BooBoo error handler middleware for Slim Framework., (*2)

Uses BooBoo error handler library by The PHP League, (*3)

Installation

Best way to install is using Composer:, (*4)

php composer.phar require juliangut/slim-booboo-middleware

Then require_once the autoload file:, (*5)

require_once './vendor/autoload.php';

Usage

Add as middleware. BooBoo middleware will automatically register BooBoo to handle errors., (*6)

BooBooMiddleware can handle creation of formatters., (*7)

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)
);

But BooBoo Middleware cannot handle creation of handlers., (*8)

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

$yourHandler = new \yourHandler();

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

Contributing

Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before, (*9)

See file CONTRIBUTING.md, (*10)

License

Release under BSD-3-Clause License.

See file LICENSE included with the source code for a copy of the license terms, (*11)

The Versions

07/04 2015

dev-master

9999999-dev http://github.com/juliangut/slim-booboo-middleware

Slim Framework BooBoo middleware

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

middleware framework slim error handler booboo

15/03 2015

0.1

0.1.0.0 http://github.com/juliangut/slim-booboo-middleware

Slim Framework BooBoo middleware

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

middleware framework slim error handler booboo