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)282.0M↓21.8%1018MITPHPPHP ^7.2 || ^8.0

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 1mo ago

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

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 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community27

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

1962d 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

[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

160123.3k1](/packages/snowair-phalcon-debugbar)[rarst/wps

WordPress plugin for whoops error handler.

129133.2k3](/packages/rarst-wps)[clawrock/magento2-debug

Magento 2 debug module based on Magento 1 Profiler with some extra features.

8419.3k1](/packages/clawrock-magento2-debug)[dereuromark/cakephp-whoops

Whoops error handler for CakePHP

1492.4k1](/packages/dereuromark-cakephp-whoops)[xiaodi/think-whoops

A debug service for ThinkPHP.

413.5k1](/packages/xiaodi-think-whoops)

PHPackages © 2026

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