PHPackages                             errors/exceptions - 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. errors/exceptions

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

errors/exceptions
=================

An error handler that produces error exceptions when a native error occurs.

0.2.0(8y ago)530.1k—8.3%[1 issues](https://github.com/php-errors/exceptions/issues)15MITPHP

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/php-errors/exceptions)[ Packagist](https://packagist.org/packages/errors/exceptions)[ Docs](https://github.com/php-errors/exceptions)[ RSS](/packages/errors-exceptions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (15)

> # No longer maintained
>
> [](#no-longer-maintained)
>
> This package is no longer maintained. See [this statement](https://gist.github.com/ezzatron/713a548735febe3d76f8ca831bc895c0) for more info.

The `errors/exceptions` package
===============================

[](#the-errorsexceptions-package)

Adding this package as a dependency indicates that the root package is designed to work with exception-based error handling as described in the [specification](https://github.com/php-errors/specification/blob/master/exception-based-error-handler.md), and will *not* work correctly with the [native](https://github.com/php-errors/native) errors that PHP produces by default:

```
composer require errors/exceptions

```

This package installs an exception-based error handler upon installation. It is not necessary to manually install the error handler via [`set_error_handler()`](http://php.net/set_error_handler).

Providing an alternate error handler
------------------------------------

[](#providing-an-alternate-error-handler)

To use an alternate error handler, simply install the alternate handler and use [Composer](https://getcomposer.org/)'s [provide](https://getcomposer.org/doc/04-schema.md#provide) option:

```
{
    "provide": {
        "errors/exceptions": "0.1.0"
    }
}
```

The "provided" error handler should still implement the [specification](https://github.com/php-errors/specification/blob/master/exception-based-error-handler.md).

Reporting deprecations
----------------------

[](#reporting-deprecations)

In some cases, such as CI builds, it is desirable to report on deprecations. To enable this behavior, set the environment variable `PHP_ERROR_EXCEPTION_DEPRECATIONS=1`.

Bypassing the error handler
---------------------------

[](#bypassing-the-error-handler)

For testing purposes only, it is possible to bypass the error handler by setting the environment variable `PHP_ERROR_EXCEPTIONS=0`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.5% 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 ~101 days

Total

3

Last Release

3241d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100152?v=4)[Erin](/maintainers/ezzatron)[@ezzatron](https://github.com/ezzatron)

---

Top Contributors

[![ezzatron](https://avatars.githubusercontent.com/u/100152?v=4)](https://github.com/ezzatron "ezzatron (21 commits)")[![jmalloc](https://avatars.githubusercontent.com/u/761536?v=4)](https://github.com/jmalloc "jmalloc (1 commits)")

---

Tags

exceptionerrorerrorshandlererrorexception

### Embed Badge

![Health badge](/badges/errors-exceptions/health.svg)

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

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[baibaratsky/yii2-rollbar

Rollbar for Yii2

35130.5k](/packages/baibaratsky-yii2-rollbar)[phptek/sentry

Sentry.io integration for SilverStripe. Binds Sentry.io to SilverStripe's error &amp; exception handling subsystem.

15203.5k3](/packages/phptek-sentry)

PHPackages © 2026

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