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

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

componenta/error-handler-app
============================

Componenta application integration for error handling and reporting

v1.0.0(1mo ago)081MITPHPPHP ^8.4

Since Jun 16Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

Componenta Error Handler App
============================

[](#componenta-error-handler-app)

Application integration for Componenta error handling. The package registers debug-aware renderers and file/HTML logging listeners used by the base `componenta/error-handler` services.

The base error contracts, contexts, handlers, renderers, middleware, and response generators live in `componenta/error-handler`. This package wires them into a Componenta application through `Componenta\Error\App\ConfigProvider`.

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

[](#installation)

```
composer require componenta/error-handler-app
```

The package exposes `Componenta\Error\App\ConfigProvider` through Composer metadata.

Debug Behavior
--------------

[](#debug-behavior)

`APP_DEBUG=true` controls whether the HTTP renderer shows detailed exception output. When debug is disabled, the application renderer uses the safe `templates/error/500.phtml` template through `Componenta\Error\Renderer\SafeRenderer`.

Debug is resolved directly from the environment file by `Componenta\Error\App\EnvDebugResolver`, so the decision does not depend on already-built application configuration.

Values `1`, `true`, `yes`, and `on` enable debug. Missing `.env`, missing `APP_DEBUG`, and any other value disable debug.

Logging
-------

[](#logging)

`Componenta\Error\App\Listener\FileLogListener` writes text logs. `Componenta\Error\App\Listener\HtmlLogListener` writes HTML snapshots for browser inspection. Paths are resolved through `componenta/path-resolver`.

`FileLogListener` is registered for HTTP and CLI errors. `HtmlLogListener` is registered only for HTTP errors and writes snapshots only when `APP_DEBUG` is enabled.

Registered Services
-------------------

[](#registered-services)

`Componenta\Error\App\ConfigProvider` configures:

Key or serviceValue`ErrorConfigKey::HTTP_LISTENERS``FileLogListener`, `HtmlLogListener``ErrorConfigKey::CLI_LISTENERS``FileLogListener``ErrorConfigKey::HTTP_RENDERER``PrettyPageRenderer(debug: true)` in debug, otherwise `SafeRenderer` with `templates/error/500.phtml`.`ErrorConfigKey::CLI_RENDERER``PlainTextRenderer` with debug flag from `.env`.`SafeRenderer::class`Safe renderer bound to `templates/error/500.phtml`.This package does not replace the base handlers from `componenta/error-handler`; it only supplies application renderers and listeners used by those handlers.

Related Packages
----------------

[](#related-packages)

- [`componenta/error-handler`](../error-handler/README.md) defines the core error handling contracts and runtime handlers.
- [`componenta/http-emitter`](../http-emitter/README.md) emits HTTP responses.
- [`componenta/skeleton`](../../componenta-skeleton/README.md) shows how application entry points log bootstrap failures and render the safe 500 template for HTTP flows.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

43d ago

### 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 (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

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

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.9k](/packages/symfony-dependency-injection)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M353](/packages/api-platform-core)[spatie/flare-client-php

Send PHP errors to Flare

178161.5M23](/packages/spatie-flare-client-php)[moonshine/moonshine

Laravel administration panel

1.3k253.1k86](/packages/moonshine-moonshine)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k54](/packages/ecotone-ecotone)

PHPackages © 2026

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