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

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

szemul/error-handler
====================

Simple extensible error handler

2.0.2(3y ago)04.6k1[1 PRs](https://github.com/szemul/error-handler/pulls)9MITPHPPHP ^8.0

Since Aug 28Pushed 2y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (7)Versions (8)Used By (9)

Error handler
=============

[](#error-handler)

[![CI pipeline](https://github.com/szemul/error-handler/actions/workflows/php.yml/badge.svg)](https://github.com/szemul/error-handler/actions/workflows/php.yml/badge.svg)[![codecov](https://camo.githubusercontent.com/24349ddbc6f505285322ad504a096474803c33a2b30081537bf659c99d9262dd/68747470733a2f2f636f6465636f762e696f2f67682f737a656d756c2f6572726f722d68616e646c65722f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4a533631503058495037)](https://codecov.io/gh/szemul/error-handler)

Simple extensible error handler

### Functional Testing of an application

[](#functional-testing-of-an-application)

For functional testing it is advised to Mock the ErrorHandlerRegistry in the sut to always stop on unhandled errors/exceptions and display them. This helps identify errors. Just use the `\Szemul\ErrorHandler\Test\ErrorHandlerRegistryMock` instead of the real one!

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~126 days

Total

5

Last Release

1218d ago

Major Versions

1.0.1 → 2.0.02021-10-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e74721923742f5c04b8ccd5796e0a0e0e744fd004fbaae3c7813b27e125ae70?d=identicon)[szeber](/maintainers/szeber)

---

Top Contributors

[![szeber](https://avatars.githubusercontent.com/u/1102330?v=4)](https://github.com/szeber "szeber (11 commits)")[![emulgeator](https://avatars.githubusercontent.com/u/1370980?v=4)](https://github.com/emulgeator "emulgeator (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[open-telemetry/api

API for OpenTelemetry PHP.

1933.0M214](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2322.9M248](/packages/open-telemetry-sdk)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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