PHPackages                             libelulasoft/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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. libelulasoft/yii2-error-handler

ActiveYii2-extension[Debugging &amp; Profiling](/categories/debugging)

libelulasoft/yii2-error-handler
===============================

Error handler for mongo databases

2.1.0(3y ago)018.7k↓29.5%1Apache-2.0PHPPHP &gt;=7.0.0

Since Nov 10Pushed 3y agoCompare

[ Source](https://github.com/libelulasoftec/yii2-error-handler)[ Packagist](https://packagist.org/packages/libelulasoft/yii2-error-handler)[ RSS](/packages/libelulasoft-yii2-error-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)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 libelulasoft/yii2-error-handler

```

or add

```
"libelulasoft/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 `libelulasoft/yii2-error-handler` se debe seguir los siguientes pasos:

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

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

```

3. Instalar la nueva version

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

```

4. Se debe cambiar el namespace `taguz91\ErrorHandler` a `Libelulasoft\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. 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' => \Libelulasoft\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
    'empresa' => $_GET['empresa'] ?? 'undefined',
    'bdConnection' => 'mongodb',
    'saveError' => true,
    'notificate' => true,
    'showTrace' => YII_DEBUG,
    'saveBody' => YII_DEBUG,
    // This exceptions not be save into database
    // And this exceptions not send via email
    'exceptionsNotSave' => [
      \Libelulasoft\ErrorHandler\exceptions\MessageException::class
    ],
  ],
]
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~42 days

Total

4

Last Release

1158d ago

Major Versions

1.1.0 → 2.0.02023-03-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c40f27cca6de9f480abe8ebbcaae7dcd9f28b22e4e7172d4b06cac1763fb860?d=identicon)[LibelulasoftEcuador](/maintainers/LibelulasoftEcuador)

---

Top Contributors

[![taguz91](https://avatars.githubusercontent.com/u/42211711?v=4)](https://github.com/taguz91 "taguz91 (29 commits)")

---

Tags

yii2extension

### Embed Badge

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

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

###  Alternatives

[joni-jones/yii2-wschat

Online chat based on web sockets and ratchet php

981.3k](/packages/joni-jones-yii2-wschat)[demi/backup

Basic Yii2 site backup methods

2020.8k](/packages/demi-backup)

PHPackages © 2026

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