PHPackages                             thecodingmachine/whoops-middleware-universal-module - 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. thecodingmachine/whoops-middleware-universal-module

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

thecodingmachine/whoops-middleware-universal-module
===================================================

Cross-framework module for franzliedke/whoops-middleware

v1.0.0(7y ago)018.6k3MITPHPPHP &gt;=7.0

Since May 16Pushed 3y ago5 watchersCompare

[ Source](https://github.com/thecodingmachine/whoops-middleware-universal-module)[ Packagist](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)[ RSS](/packages/thecodingmachine-whoops-middleware-universal-module/feed)WikiDiscussions next-funky Synced 2mo ago

READMEChangelog (4)Dependencies (7)Versions (9)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/c732ec6a28cb38123aa2355930ea142651fe6832029e1faefb2b01de6af4b6bf/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f77686f6f70732d6d6964646c65776172652d756e6976657273616c2d6d6f64756c652f762f737461626c65)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)[![Latest Unstable Version](https://camo.githubusercontent.com/51692b9be1d6f3396074edad5656caa8b3ff1e3095c8d94ecf88e5280d7c9d66/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f77686f6f70732d6d6964646c65776172652d756e6976657273616c2d6d6f64756c652f762f756e737461626c65)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)[![License](https://camo.githubusercontent.com/da7f411f30f3a1d5a7f2c1afcb93e9dfb90629566d5fef53052aacc6f109eb7c/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f77686f6f70732d6d6964646c65776172652d756e6976657273616c2d6d6f64756c652f6c6963656e7365)](https://packagist.org/packages/thecodingmachine/whoops-middleware-universal-module)[![Build Status](https://camo.githubusercontent.com/585a2000402f72c5c95b0e519feb1f6ad13098d790c532e0cc7253ae5957196e/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f77686f6f70732d6d6964646c65776172652d756e6976657273616c2d6d6f64756c652e7376673f6272616e63683d312e31)](https://travis-ci.org/thecodingmachine/whoops-middleware-universal-module)[![Coverage Status](https://camo.githubusercontent.com/9ae3ff50925d34c6fb2c6ab6ed9c649dc0f9a1e4110024f54f24a1e3111d30d5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f77686f6f70732d6d6964646c65776172652d756e6976657273616c2d6d6f64756c652f62616467652e7376673f6272616e63683d312e3126736572766963653d676974687562)](https://coveralls.io/github/thecodingmachine/whoops-middleware-universal-module?branch=1.1)

Whoops middleware universal module
==================================

[](#whoops-middleware-universal-module)

This package integrates the `middlewares/whoops` library in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/whoops-middleware-universal-module

```

If your container supports autodiscovery by Discovery, there is nothing more to do. Otherwise, you need to register the [`TheCodingMachine\WhoopsMiddlewareServiceProvider`](src/WhoopsMiddlewareServiceProvider.php) into your container.

Refer to your framework or container's documentation to learn how to register *service providers*.

Usage
-----

[](#usage)

This module registers one service in your container:

- A PSR-15 Middleware under the `Middlewares\Whoops` key.

Moreover, this module registers both keys in the routers list. If you use a compatible service provider (like [stratigility-harmony](https://github.com/thecodingmachine/stratigility-harmony)), the Whoops Middleware handler will be added automatically.

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`Whoops\Run`*no*An instance of the Whoops Run class. A default one will be provided if the service is not available in the container.`Whoops\Util\SystemFacade`*no*A Whoops SystemFacade used to build the Whoops `Run` instance. This is only used if no `Whoops\Run` instance is available in the container.`whoops.catchErrors`*no*(bool), defaults to true. Whether Whoops should turn errors into exceptions.`whoopsHandlerContainer`*no*A PSR-11 container that contains the mime type as key and the Whoops error handler as value. Useful to use a special default handler for a given mime type.Provided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`Middlewares\Whoops`The PSR-15 Whoops middlewareExtended services
-----------------

[](#extended-services)

This *service provider* extends those services:

NameCompulsoryDescription`MiddlewareListServiceProvider::MIDDLEWARES_QUEUE`*no*This service providers inserts the CSRF middleware in the middleware queue.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~107 days

Recently: every ~63 days

Total

8

Last Release

2901d ago

Major Versions

0.4.x-dev → v1.0.02018-06-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (15 commits)")[![drobieux-julien](https://avatars.githubusercontent.com/u/26894758?v=4)](https://github.com/drobieux-julien "drobieux-julien (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thecodingmachine-whoops-middleware-universal-module/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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