PHPackages                             juliangut/slim-booboo-middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. juliangut/slim-booboo-middleware

ActiveLibrary[Framework](/categories/framework)

juliangut/slim-booboo-middleware
================================

Slim Framework BooBoo middleware

0.1(11y ago)128BSD-3-ClausePHPPHP &gt;=5.4

Since Mar 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/juliangut/slim-booboo-middleware)[ Packagist](https://packagist.org/packages/juliangut/slim-booboo-middleware)[ Docs](http://github.com/juliangut/slim-booboo-middleware)[ RSS](/packages/juliangut-slim-booboo-middleware/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/252690c19dc1c51a1ac83a9cd447cb1fcd4b884af32b2dedba06df7632c4da75/68747470733a2f2f7472617669732d63692e6f72672f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/juliangut/slim-booboo-middleware)[![Code Climate](https://camo.githubusercontent.com/e770bf2efc4b10b9d0c42920fa7616bccc60a806e96dde031f68bc3307fa6fb1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652f6261646765732f6770612e737667)](https://codeclimate.com/github/juliangut/slim-booboo-middleware)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8cad697eb3437a84b84f806ed0a66f40139493caf1fd5815ddd4125715220770/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/juliangut/slim-booboo-middleware/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/489e06894943cbfe7b279c9c72ca4b83149c7da70c195b79ff97650c071c764a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/juliangut/slim-booboo-middleware/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/2c70e856461cbc0ca8fd5fe274680093cd54d1c3d424155336955335d92b1bd5/68747470733a2f2f706f7365722e707567782e6f72672f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652f762f737461626c652e737667)](https://packagist.org/packages/juliangut/slim-booboo-middleware)[![Total Downloads](https://camo.githubusercontent.com/c90186201f211a3ce2ce6487e4cb1248f885a14ff3b20899e389c295074e779d/68747470733a2f2f706f7365722e707567782e6f72672f6a756c69616e6775742f736c696d2d626f6f626f6f2d6d6964646c65776172652f646f776e6c6f6164732e737667)](https://packagist.org/packages/juliangut/slim-booboo-middleware)

Juliangut Slim Framework BooBoo handler middleware
==================================================

[](#juliangut-slim-framework-booboo-handler-middleware)

BooBoo error handler middleware for Slim Framework.

Uses [BooBoo](https://github.com/thephpleague/booboo) error handler library by [The PHP League](http://thephpleague.com/)

Installation
------------

[](#installation)

Best way to install is using [Composer](https://getcomposer.org/):

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

```

Then require\_once the autoload file:

```
require_once './vendor/autoload.php';
```

Usage
-----

[](#usage)

Add as middleware. BooBoo middleware will automatically register BooBoo to handle errors.

BooBooMiddleware can handle creation of formatters.

```
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.

```
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
------------

[](#contributing)

Found a bug or have a feature request? [Please open a new issue](https://github.com/juliangut/slim-booboo-middleware/issues). Have a look at existing issues before

See file [CONTRIBUTING.md](https://github.com/juliangut/slim-booboo-middleware/blob/master/CONTRIBUTING.md)

License
-------

[](#license)

### Release under BSD-3-Clause License.

[](#release-under-bsd-3-clause-license)

See file [LICENSE](https://github.com/juliangut/slim-booboo-middleware/blob/master/LICENSE) included with the source code for a copy of the license terms

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c50421f1ab4148354dc2dd5dcaba168656b17ea913b310d112deb39a6f73ca1?d=identicon)[juliangut](/maintainers/juliangut)

---

Top Contributors

[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (6 commits)")

---

Tags

middlewareframeworkslimerrorhandlerbooboo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/juliangut-slim-booboo-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/juliangut-slim-booboo-middleware/health.svg)](https://phpackages.com/packages/juliangut-slim-booboo-middleware)
```

###  Alternatives

[slim/csrf

Slim Framework 4 CSRF protection PSR-15 middleware

3732.2M103](/packages/slim-csrf)[slim/http-cache

Slim Framework HTTP cache middleware and service provider

1243.1M33](/packages/slim-http-cache)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

173229.0k3](/packages/davidepastore-slim-validation)[bnf/slim3-psr15

PSR-15 middleware support for Slim Framework v3

10178.4k7](/packages/bnf-slim3-psr15)[pavlakis/slim-cli

Making a mock GET request through the CLI and enabling the same application entry point on CLI scripts.

3793.8k3](/packages/pavlakis-slim-cli)[davidepastore/slim-config

A slim middleware to read configuration from different files based on hassankhan/config

359.2k1](/packages/davidepastore-slim-config)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
