PHPackages                             libelulibelu/yii2-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. libelulibelu/yii2-error-handler

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

libelulibelu/yii2-error-handler
===============================

Error handler for mongo databases

v1.0.0(1mo ago)031Apache-2.0PHP &gt;=8.2

Since Jun 21Compare

[ Source](https://github.com/libelulibelu/yii2-error-handler)[ Packagist](https://packagist.org/packages/libelulibelu/yii2-error-handler)[ RSS](/packages/libelulibelu-yii2-error-handler/feed)WikiDiscussions Synced 2w ago

READMEChangelogDependencies (6)Versions (2)Used By (1)

Error handler
=============

[](#error-handler)

Error handler for mongo database

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

[](#installation)

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

Either run

```
composer require --prefer-dist libelulibelu/yii2-error-handler

```

or add

```
"libelulibelu/yii2-error-handler": "~1.0.0"

```

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

Migration
---------

[](#migration)

Si se quiere migrar de la version `taguz91/yii2-error-handler` a la nueva version `libelulibelu/yii2-error-handler` se debe seguir los siguientes pasos:

1. Seguir la guia de migracion para [yii2-common-helpers](https://github.com/libelulibelu/yii2-common-helpers).
2. Eliminar la version actual

```
composer remove taguz91/yii2-error-handler

```

3. Instalar la nueva version

```
composer require libelulibelu/yii2-error-handler

```

4. Se debe cambiar el namespace `taguz91\ErrorHandler` a `Libelula\ErrorHandler` en todo el proyecto.
5. Actualizar las configuraciones de la libreria, agregando las nuevas opciones:

- **bdConnection** nombre de la base de datos que se usara para guardar todas las excepciones.
- **saveError** booleano que nos indica si debemos guardar los errores en base de datos.
- **showTrace** booleano que nos indica si debemos mostrar le trace en la response, por defecto utiliza la constante YII\_DEBUG
- **saveBody** booleano que nos indica si debemos guardar los datos enviados por *post* en la excepcion, por defecto se utiliza la constante YII\_DEBUG

6. Las opciones de configuracion `empresa` y `notificate` fueron renombradas a `company` y `notify` respectivamente. Se deben actualizar en la configuracion del componente `errorHandler`.
7. Probamos que todo funcione de forma correcta.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

```
// confing\main.php

'components' => [
  ...,
  'errorHandler' => [
    'errorAction' => 'site/error',
    'class' => \Libelula\ErrorHandler\ErrorHandler::class,
    'loggerComponent' => '', // empty when the logger handler not exists
    'emailConfig' => 'EMAIL_ERROR_NOTIFICATION', // configuration for email
    'configClass' => '/common/models/Configuration', // debe implementar interface config
    'company' => $_GET['empresa'] ?? 'undefined',
    'bdConnection' => 'mongodb',
    'saveError' => true,
    'notify' => true,
    'showTrace' => YII_DEBUG,
    'saveBody' => YII_DEBUG,
    // This exceptions not be save into database
    // And this exceptions not send via email
    'exceptionsNotSave' => [
      \Libelula\ErrorHandler\exceptions\MessageException::class
    ],
  ],
]
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity46

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

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d00633794cb82a0c02a1cb2d71c956f86d92d23daa8eb87b4e666af312d3889?d=identicon)[libelulibelu](/maintainers/libelulibelu)

---

Tags

yii2extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/libelulibelu-yii2-error-handler/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.3k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13725.8k63](/packages/skeeks-cms)[mito/yii2-sentry

Yii 2 extension for Sentry

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

A port of audit trail

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

Tools to store user activity log for Yii2

3463.4k](/packages/lav45-yii2-activity-logger)[apollo11/yii2-logger

Log application errors in slack channel

1012.1k1](/packages/apollo11-yii2-logger)

PHPackages © 2026

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