PHPackages                             bermudaphp/error-handler - 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. bermudaphp/error-handler

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

bermudaphp/error-handler
========================

v3.0.0(1y ago)31042MITPHPPHP ^8.4

Since Jan 30Pushed 1y agoCompare

[ Source](https://github.com/bermudaphp/error-handler)[ Packagist](https://packagist.org/packages/bermudaphp/error-handler)[ RSS](/packages/bermudaphp-error-handler/feed)WikiDiscussions v3 Synced 1w ago

READMEChangelog (3)Dependencies (7)Versions (5)Used By (2)

Install
=======

[](#install)

```
composer require bermudaphp/error-handler
```

Usage
=====

[](#usage)

```
$generator = new ErrorResponseGenerator($psr17ResponseFactory, new WhoopsErrorGenerator($psr17ResponseFactory));
$generator->addGenerator($myConcreteErrorResponseGenerator);
$errorHandler = new ErrorHandlerMiddleware(new ErrorHandler($generator));
$pipeline->pipe($errorHandler); // Add ErrorHandlerMiddleware at the beginning of the middleware queue
```

Event listening
===============

[](#event-listening)

```
$errorHandler->listen(new Listener\LoggerListener($logger));
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance46

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~197 days

Total

5

Last Release

413d ago

Major Versions

v2.x-dev → v3.0.02025-03-31

PHP version history (2 changes)v2.0PHP ^8.1

v2.x-devPHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (416 commits)")

---

Tags

error-handlingerrorsmiddlewarephppsr-15psr-7

### Embed Badge

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

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

###  Alternatives

[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k21.3M40](/packages/php-debugbar-php-debugbar)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)[yireo/magento2-whoops

Magento 2 module adding Whoops error handling

102703.5k](/packages/yireo-magento2-whoops)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)

PHPackages © 2026

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