PHPackages                             idealogica/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. idealogica/error-handler

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

idealogica/error-handler
========================

Error handler based on Booboo with HTML and JSON support

1.0.18(4y ago)0833MITPHPPHP &gt;=7.1.0

Since Jun 12Pushed 4y agoCompare

[ Source](https://github.com/idealogica/error-handler)[ Packagist](https://packagist.org/packages/idealogica/error-handler)[ Docs](https://github.com/idealogica/error-handler)[ RSS](/packages/idealogica-error-handler/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (6)Versions (20)Used By (0)

ErrorHandler - Error handler based on Booboo with HTML and JSON support
=======================================================================

[](#errorhandler---error-handler-based-on-booboo-with-html-and-json-support)

1. Features
-----------

[](#1-features)

- allows to setup formatters based on the request uri
- automatically detects cli mode and uses appropriate formatter
- uses templates for customizable error pages
- can detect exceptions which are not allowed to be shown and show general "server error" message instead of exact exception information

2. Installation
---------------

[](#2-installation)

```
composer require idealogica/error-handler:~1.0.0

```

3. Basic example
----------------

[](#3-basic-example)

```
$handler = new ErrorHandler(
    new ServerRequest('GET', new Uri('https://www.server.test/api/endpoint')),
    [
        '/api/.*' => [new JsonFormatter()],
        '.*' => [new HtmlFormatter(ViewFactory::createStringViewFactory())]
    ],
    [
        new CommandLineFormatter()
    ],
    $debugMode,
    InvalidArgumentException::class
);
$handler->register();

```

4. License
----------

[](#4-license)

ErrorHandler is licensed under a [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Recently: every ~208 days

Total

19

Last Release

1646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dfe693e24f13322ee0ab1de94b76274aa9bedfd1f0951913c44a971ad8d4cb8?d=identicon)[idealogica](/maintainers/idealogica)

---

Top Contributors

[![idealogica](https://avatars.githubusercontent.com/u/15087194?v=4)](https://github.com/idealogica "idealogica (3 commits)")

---

Tags

psrphpexceptionerrorhandlerbooboo

### Embed Badge

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

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

###  Alternatives

[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17648.1k13](/packages/lctrs-psalm-psr-container-plugin)

PHPackages © 2026

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