PHPackages                             stratify/error-handler-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. stratify/error-handler-module

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

stratify/error-handler-module
=============================

Error handler module for Stratify

0.5.0(8y ago)074311MITPHP

Since Sep 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/stratifyphp/error-handler-module)[ Packagist](https://packagist.org/packages/stratify/error-handler-module)[ RSS](/packages/stratify-error-handler-module/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (8)Versions (10)Used By (1)

Error handler module for Stratify
=================================

[](#error-handler-module-for-stratify)

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

[](#installation)

- 1. Install the package:

```
composer require stratify/error-handler-module

```

- 2. Enable the module:

```
$app = new Application([
    'stratify/error-handler-module',
]);
```

- 3. Use the HTTP middleware:

```
$http = pipe([
    ErrorHandlerMiddleware::class,

    // ...
]);
$app->http($http)->run();
```

The HTTP middleware catches all exceptions happening in sub-middlewares and displays an error page. Because of that, you probably want that middleware to run before all others middlewares.

The default behavior is to show a very simple error page: `Server error` (status code 500).

In `dev` environment the error page will be much more detailed thanks to the Whoops library. For security reasons (not exposing any sensitive information), this page only displays if you configure the application to run in `dev` environment:

```
$app = new Application($modules, 'dev');
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Every ~87 days

Total

9

Last Release

3254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/329a6111724074f5388e95dd41a03ccf3c43f4bfe1ecf27c94c9efc6f7823228?d=identicon)[mnapoli](/maintainers/mnapoli)

---

Top Contributors

[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stratify-error-handler-module/health.svg)

```
[![Health](https://phpackages.com/badges/stratify-error-handler-module/health.svg)](https://phpackages.com/packages/stratify-error-handler-module)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

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

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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