PHPackages                             metalguardian/yii-ratchet-error-handler - 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. metalguardian/yii-ratchet-error-handler

AbandonedArchivedYii-extension[Logging &amp; Monitoring](/categories/logging)

metalguardian/yii-ratchet-error-handler
=======================================

031PHP

Since Jan 20Pushed 11y agoCompare

[ Source](https://github.com/MetalGuardian/yii-ratchet-error-handler)[ Packagist](https://packagist.org/packages/metalguardian/yii-ratchet-error-handler)[ RSS](/packages/metalguardian-yii-ratchet-error-handler/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Ratchet Error Handler
=====================

[](#ratchet-error-handler)

Error handler with handling php errors, exceptions,. fatal errors

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require metalguardian/yii-ratchet-error-handler "dev-master"

```

or add

```
"metalguardian/yii-ratchet-error-handler": "dev-master"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your configuration file :

```
array(
    'preload' => array(
        // ...
        'rollbar',
        // ...
    ),
    'components' => array(
        'rollbar' => array(
            'class' => '\metalguardian\rollbar\Component',
            'access_token' => 'ACCESS_TOKEN',
            'environment' => 'production',
            'included_errno' => E_ALL,
        ),
        'errorHandler' => array(
            'class' => '\metalguardian\rollbar\ErrorHandler',
            'ignoreException' => function ($exception) {
                /** @var \CHttpException $exception */
                // ignore 404 exceptions
                if ($exception instanceof \CHttpException && $exception->statusCode == 404) {
                    return true;
                }
                // ignore 403 exceptions
                if ($exception instanceof \CHttpException && $exception->statusCode == 403) {
                    return true;
                }
                // other ignores

                return false;
            },
        ),

        ),
    // ...
)
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![MetalGuardian](https://avatars.githubusercontent.com/u/1168520?v=4)](https://github.com/MetalGuardian "MetalGuardian (3 commits)")

### Embed Badge

![Health badge](/badges/metalguardian-yii-ratchet-error-handler/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M275](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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