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

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

developit/yii2-errorhandler
===========================

yii2 error handler With the ability to search on google and stackoverflow and display results in order to find a quick solution.

1.0(8y ago)7338LGPL-3.0PHP

Since Sep 15Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

yii2 custom error handler
=========================

[](#yii2-custom-error-handler)

yii2 error handler With the ability to search on google, stackoverflow and yiiframework and display results in order to find a quick solution.

[![screenshot](https://camo.githubusercontent.com/c77726a4487f54fa94bb93ffeb0d0e0926a317073ac6fdf2dad3f86c33496394/687474703a2f2f7777772e646576656c6f7069742e69722f746d702f6572726f7268616e646c65722e706e67)](https://camo.githubusercontent.com/c77726a4487f54fa94bb93ffeb0d0e0926a317073ac6fdf2dad3f86c33496394/687474703a2f2f7777772e646576656c6f7069742e69722f746d702f6572726f7268616e646c65722e706e67)

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

[](#installation)

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

Either run

```
composer require developit/yii2-errorhandler

```

or add

```
"developit/yii2-errorhandler": "*"

```

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

Usage
-----

[](#usage)

create a action(eg. errorhandler)

```
    /**
     * @inheritdoc
     */
    public function actions()
    {
        return [
            'error' => [
                'class' => 'yii\web\ErrorAction',
            ],
            'errorhandler' => [
                'class' => 'developit\errorhandler\ErrorHandlerAction',
            ]
        ];
    }
```

update errorHandler on config.php

```
        'errorHandler' => [
            'class' => 'developit\errorhandler\ErrorHandler',
            'errorAction' => 'site/error',
        ],
```

License
-------

[](#license)

yii2-errorhandler is an open source project created by Ehsan Rezaei() that is licensed under GPL-3.0.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3166d ago

### Community

Maintainers

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

---

Top Contributors

[![rezaei121](https://avatars.githubusercontent.com/u/3050755?v=4)](https://github.com/rezaei121 "rezaei121 (9 commits)")

---

Tags

yii2yii2-erroryii2-error-handleryii2-extensionerror-handleryii2extensionerrorhandler yii2 error yii2 errorhandler yii2 error handler

### Embed Badge

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

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

###  Alternatives

[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)[sammaye/yii2-audittrail

A port of audit trail

39408.2k](/packages/sammaye-yii2-audittrail)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[kriss/yii2-log-reader

Yii2 log reader

1340.1k1](/packages/kriss-yii2-log-reader)

PHPackages © 2026

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