PHPackages                             infira/errorhandler - 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. infira/errorhandler

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

infira/errorhandler
===================

Comprehensive php error,notice, etc handler.

v3.1.2(1mo ago)06462PHPPHP &gt;=8.0.2

Since Aug 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/infira/ErrorHandler)[ Packagist](https://packagist.org/packages/infira/errorhandler)[ RSS](/packages/infira-errorhandler/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (2)Versions (30)Used By (2)

ErrorHandler
============

[](#errorhandler)

\###Comprehensive php error,notice, etc. handler.

Once in a while some bug gets into production what didn't show up in tests. ErrorHandler catches your defined error levels made by php-core, user, and custom errors and outputs it to browser, or you can make a custom wrapper to handle errors. Look examples below.

\#Install

- Minimum Requirements - PHP 8

```
$ composer require infira/errorhandler
```

\#Usage

\##Raising user errors

```
use Infira\Error\Error;

alert("my error",['extra'=>'data']); //it's a helper to Error::trigger
Error::trigger("my error",['extra'=>'data']);
```

\##Catching &amp; displaying errors

```
use Infira\Error\Handler;
require_once "vendor/autoload.php";
Handler::register();
try
{
	alert("my error",['extra'=>'data']);
	//OR
	callingNotExistingMethod();
	//OR
	echo $a
}
catch (Throwable $e) {
	echo Handler::compile($e)->getHTMLTable();
}
```

getHTMLTable() will output, with all the goodies server has to offer [![alt text](example.png)](example.png)

That's it! Your application is catching errors!

\##Using compiled Exception data

```
use Infira\Error\Handler;
require_once "vendor/autoload.php";
Handler::register();
try
{
	makeError
}
catch (Throwable $e) {
    echo "".print_r(Handler::compile($e)->toArray(); //outputs all data that has been collected
}
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

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

Recently: every ~261 days

Total

29

Last Release

47d ago

Major Versions

1.5.1.1 → v2.02021-12-06

v2.1.1 → v3.02025-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/c13460ff76e7fb78d8597217aff4ea9bec2a5eca918bd02be8ecd8b9d6be4261?d=identicon)[infira](/maintainers/infira)

---

Top Contributors

[![infira](https://avatars.githubusercontent.com/u/3343899?v=4)](https://github.com/infira "infira (58 commits)")

### Embed Badge

![Health badge](/badges/infira-errorhandler/health.svg)

```
[![Health](https://phpackages.com/badges/infira-errorhandler/health.svg)](https://phpackages.com/packages/infira-errorhandler)
```

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[vinelab/tracing-laravel

Distributed tracing for Laravel made easy

80118.7k1](/packages/vinelab-tracing-laravel)[scoutapp/scout-apm-php

Scout Application Performance Monitoring Agent - https://scoutapm.com

17877.0k5](/packages/scoutapp-scout-apm-php)[subzerobo/elastic-apm-php-agent

PHP Agent for Elastic APM With Intake API V2 Support + UDP Support

1119.1k](/packages/subzerobo-elastic-apm-php-agent)

PHPackages © 2026

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