PHPackages                             niletphp/error-handling - 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. niletphp/error-handling

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

niletphp/error-handling
=======================

The NiletPHP error handling component.

v1.0.0(9y ago)01821MITPHPPHP &gt;=7.0

Since Mar 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tsvetelintsonev/niletphp-error-handling)[ Packagist](https://packagist.org/packages/niletphp/error-handling)[ RSS](/packages/niletphp-error-handling/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

\##Custom error handling

Registers custom error handler, which throws \\Error when PHP emits E\_WARNING or E\_ERROR.

### Requirements

[](#requirements)

`PHP >= 7.0`

### Install

[](#install)

Composer

```
{
    "require": {
        "niletphp/error-handling": ">=v1.0"
    }
}
```

### Examples

[](#examples)

```
use Nilet\Components\ErrorHandling\ErrorHandler;

$eh = new ErrorHandler();

// Registering the custom error handler
$eh->handleErrors();

// Restore the previous event handler
$eh->restoreErrorHandler();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e014acd2f0c831bd8b1a91b4a10774f71122cb0b32aadfc09cc996fa7693131?d=identicon)[tsvetelin](/maintainers/tsvetelin)

### Embed Badge

![Health badge](/badges/niletphp-error-handling/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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