PHPackages                             zeuxisoo/slim-whoops - 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. zeuxisoo/slim-whoops

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

zeuxisoo/slim-whoops
====================

PHP whoops error on slim framework

0.7.3(5y ago)1371.1M↓65.1%10[1 issues](https://github.com/zeuxisoo/php-slim-whoops/issues)[1 PRs](https://github.com/zeuxisoo/php-slim-whoops/pulls)20BSD-2-ClausePHPPHP ^7.2 || ^8.0

Since Jan 14Pushed 2y ago4 watchersCompare

[ Source](https://github.com/zeuxisoo/php-slim-whoops)[ Packagist](https://packagist.org/packages/zeuxisoo/slim-whoops)[ Docs](https://github.com/zeuxisoo/php-slim-whoops/)[ RSS](/packages/zeuxisoo-slim-whoops/feed)WikiDiscussions 0.7.x Synced 3d ago

READMEChangelogDependencies (7)Versions (21)Used By (20)

Slim whoops
===========

[](#slim-whoops)

PHP whoops error on slim framework

Status
------

[](#status)

[![Build Status](https://github.com/zeuxisoo/php-slim-whoops/workflows/Tests/badge.svg?branch=0.7.x)](https://github.com/zeuxisoo/php-slim-whoops/actions?query=branch:0.7.x)[![Coverage Status](https://camo.githubusercontent.com/b645610f5692e37ef2c49f34e194c59617f75442d9afc3179a21b2a48d55617e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a65757869736f6f2f7068702d736c696d2d77686f6f70732f62616467652e737667)](https://coveralls.io/github/zeuxisoo/php-slim-whoops)[![Downloads this Month](https://camo.githubusercontent.com/a3b179133ab5a26c40176e9bd997d4814b4df05c19dd43f8436046585afe3051/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f7a65757869736f6f2f736c696d2d77686f6f70732e737667)](https://packagist.org/packages/zeuxisoo/slim-whoops)[![Latest Stable Version](https://camo.githubusercontent.com/0e6e5f1e1e284bdcc5a44f670b211aed680f3e11e28c7701c3bb458b4fc899b2/68747470733a2f2f706f7365722e707567782e6f72672f7a65757869736f6f2f736c696d2d77686f6f70732f762f737461626c65)](https://github.com/zeuxisoo/php-slim-whoops/releases)

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

[](#installation)

Install the composer

```
curl -sS https://getcomposer.org/installer | php
```

Edit `composer.json`

SlimWhoopsVersionGlobal ModePHP DI1n/a0.1.\*nono21.\*0.3.\*nono3&lt;= 1.\*0.4.\*nono3&gt;= 2.\*0.5.\*nono3&gt;= 2.\*0.6.\*yesyes4&gt;= 2.\*0.7.\*nonoFor `Slim framework 4`, The `composer.json` will looks like

```
{
    "require": {
        "zeuxisoo/slim-whoops": "0.7.*"
    }
}
```

Now, `install` or `update` the dependencies

```
composer install
```

Basic Usage
-----------

[](#basic-usage)

Add to middleware with default settings

```
$app->add(new Zeuxisoo\Whoops\Slim\WhoopsMiddleware());
```

Or you can pass more settings to the `WhoopsMiddleware`

```
$app->add(new Zeuxisoo\Whoops\Slim\WhoopsMiddleware([
    'enable' => true,
    'editor' => 'sublime',
    'title'  => 'Custom whoops page title',
]));
```

Custom Editor String
--------------------

[](#custom-editor-string)

If your editor do not included in [default editor list](https://github.com/filp/whoops/blob/master/docs/Open%20Files%20In%20An%20Editor.md#open-files-in-an-editor "Whoops Framework Open Files In An Editor"), you can custom it like

```
$app->add(new Zeuxisoo\Whoops\Slim\WhoopsMiddleware([
    'editor' => function($file, $line) {
        return "http://localhost:8091?message=%file:%line";
    }
]));
```

Custom Handler Usage
--------------------

[](#custom-handler-usage)

In this usage, you can make your own handler for whoops, like:

```
$simplyErrorHandler = function($exception, $inspector, $run) {
    $message = $exception->getMessage();
    $title   = $inspector->getExceptionName();

    echo "{$title} -> {$message}";
    exit;
};
```

And then pass it to the `WhoopsMiddleware`:

```
new Zeuxisoo\Whoops\Slim\WhoopsMiddleware([], [$simplyErrorHandler]);
```

Important Note
--------------

[](#important-note)

Version `0.3.0` or above version

- The `whoops` library is installed by default base on the [Whoops Framework Integration Document](https://github.com/filp/whoops/blob/master/docs/Framework%20Integration.md#contributing-an-integration-with-a-framework "Whoops Framework Integration Document")

Version `0.2.0`

- You must to install the `whoops` library manually.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community31

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~197 days

Recently: every ~431 days

Total

20

Last Release

803d ago

PHP version history (5 changes)0.1.0PHP &gt;=5.3.0

0.4.0PHP &gt;=5.5.0

0.7.0PHP ^7.1

0.7.3PHP ^7.2 || ^8.0

0.7.x-devPHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee2dcbe56ca516fd51485a3a842f87fc30316433e83707e480250c46a285cc90?d=identicon)[zeuxisoo](/maintainers/zeuxisoo)

---

Top Contributors

[![zeuxisoo](https://avatars.githubusercontent.com/u/322299?v=4)](https://github.com/zeuxisoo "zeuxisoo (187 commits)")[![SpazzMarticus](https://avatars.githubusercontent.com/u/5716457?v=4)](https://github.com/SpazzMarticus "SpazzMarticus (5 commits)")[![adamaveray](https://avatars.githubusercontent.com/u/1160237?v=4)](https://github.com/adamaveray "adamaveray (3 commits)")[![vkbansal](https://avatars.githubusercontent.com/u/5930351?v=4)](https://github.com/vkbansal "vkbansal (2 commits)")[![michaelboke](https://avatars.githubusercontent.com/u/2121940?v=4)](https://github.com/michaelboke "michaelboke (1 commits)")[![ceejayoz](https://avatars.githubusercontent.com/u/2825?v=4)](https://github.com/ceejayoz "ceejayoz (1 commits)")[![jaydenireland](https://avatars.githubusercontent.com/u/719397?v=4)](https://github.com/jaydenireland "jaydenireland (1 commits)")

---

Tags

middlewarephpphp-slim-whoopsslim-frameworkwhoopswhoops-errorsslimexceptionerrorwhoops

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zeuxisoo-slim-whoops/health.svg)

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.6k429.7M1.5k](/packages/filp-whoops)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

104756.6k](/packages/yireo-magento2-whoops)[rarst/wps

WordPress plugin for whoops error handler.

129136.2k3](/packages/rarst-wps)[topshelfcraft/canary

The kinder, cuter, cleverer Craft error handler.

114.4k](/packages/topshelfcraft-canary)

PHPackages © 2026

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