PHPackages                             franzl/whoops-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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. franzl/whoops-middleware

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

franzl/whoops-middleware
========================

PSR-15 compatible middleware for Whoops, the pretty error handler

2.0.0(5y ago)292.1M↓41.7%1019MITPHPPHP ^7.2 || ^8.0CI failing

Since Oct 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/franzliedke/whoops-middleware)[ Packagist](https://packagist.org/packages/franzl/whoops-middleware)[ RSS](/packages/franzl-whoops-middleware/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (12)Used By (19)

PSR-15 middleware for Whoops
============================

[](#psr-15-middleware-for-whoops)

A PSR-15 compatible middleware for [Whoops](https://github.com/filp/whoops), the fantastic pretty error handler for PHP.

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

[](#installation)

You can install the library using Composer:

```
composer require franzl/whoops-middleware

```

Usage
-----

[](#usage)

Assuming you are using a PSR-15 compatible middleware dispatcher (such as [zend-stratigility](https://github.com/zendframework/zend-stratigility), [Relay](http://relayphp.com/2.x), or [broker](https://github.com/northwoods/broker)), all you need to do is add the middleware class to your pipeline / broker / dispatcher ...

This might look as follows:

### Stratigility

[](#stratigility)

```
$pipe->pipe(new \Franzl\Middleware\Whoops\WhoopsMiddleware)
```

### Relay

[](#relay)

```
$queue = [];
// ...
$queue[] = new \Franzl\Middleware\Whoops\WhoopsMiddleware;
$relay = new Relay($queue);
```

### broker

[](#broker)

```
$broker->always(\Franzl\Middleware\Whoops\WhoopsMiddleware::class)
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 86.5% 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

Every ~190 days

Recently: every ~358 days

Total

11

Last Release

2007d ago

Major Versions

0.5.0 → 1.0.02018-04-11

1.2.0 → 2.0.02021-01-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a8620604a1f4094fee4ab1c3d2f6fccb6583293daf5f866c804d155c05b2e13?d=identicon)[franzliedke](/maintainers/franzliedke)

---

Top Contributors

[![franzliedke](https://avatars.githubusercontent.com/u/249125?v=4)](https://github.com/franzliedke "franzliedke (45 commits)")[![fetchandadd](https://avatars.githubusercontent.com/u/15845152?v=4)](https://github.com/fetchandadd "fetchandadd (3 commits)")[![Fooriva](https://avatars.githubusercontent.com/u/11922438?v=4)](https://github.com/Fooriva "Fooriva (1 commits)")[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (1 commits)")[![MrHash](https://avatars.githubusercontent.com/u/390925?v=4)](https://github.com/MrHash "MrHash (1 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (1 commits)")

---

Tags

middlewarephppsr-15psr-7whoops

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/franzl-whoops-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/franzl-whoops-middleware/health.svg)](https://phpackages.com/packages/franzl-whoops-middleware)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[getkirby/cms

The Kirby core

1.5k584.8k472](/packages/getkirby-cms)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

104756.1k](/packages/yireo-magento2-whoops)[zeuxisoo/slim-whoops

PHP whoops error on slim framework

1371.1M27](/packages/zeuxisoo-slim-whoops)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

159125.9k1](/packages/snowair-phalcon-debugbar)

PHPackages © 2026

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