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

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

flextype-components/errorhandler
================================

Error Handler Component for errors handling.

v1.0.5(7y ago)01.2kMITPHPPHP ^7.1.3

Since Mar 10Pushed 7y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (7)Used By (0)

Error Handler Component
=======================

[](#error-handler-component)

[![version](https://camo.githubusercontent.com/fd535fc8a0abb28ec98661342d0cf5e7be6cbaf95c4b58943356ef0f48b43cd2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/fd535fc8a0abb28ec98661342d0cf5e7be6cbaf95c4b58943356ef0f48b43cd2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/errorhandler/blob/master/LICENSE)

[![preview](preview.png)](preview.png)

Error Handler Component for errors handling.

### Installation

[](#installation)

```
composer require flextype-components/errorhandler

```

### Usage

[](#usage)

```
use Flextype\Component\ErrorHandler\ErrorHandler;
```

Set error reporting level

```
$show_errors = true;

if ($show_errors) {
    define('DEVELOPMENT', true);
    error_reporting(-1);
} else {
    define('DEVELOPMENT', false);
    error_reporting(0);
}
```

Set LOGS\_PATH constant

```
define('LOGS_PATH', 'path/to/logs');
```

Set Error handler

```
set_error_handler('Flextype\Component\ErrorHandler\ErrorHandler::error');
register_shutdown_function('Flextype\Component\ErrorHandler\ErrorHandler::fatal');
set_exception_handler('Flextype\Component\ErrorHandler\ErrorHandler::exception');
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/errorhandler/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Recently: every ~70 days

Total

6

Last Release

2709d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.0.4PHP ^7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (13 commits)")

---

Tags

errorhandler

### Embed Badge

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

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

###  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)
