PHPackages                             jinnguyen/puja-error - 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. jinnguyen/puja-error

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

jinnguyen/puja-error
====================

Puja-Error are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function

v1.0.0(9y ago)043Apache License 2.0PHP

Since Dec 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jinnguyen/puja-error)[ Packagist](https://packagist.org/packages/jinnguyen/puja-error)[ RSS](/packages/jinnguyen-puja-error/feed)WikiDiscussions master Synced 4w ago

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

puja-error
==========

[](#puja-error)

Puja-Error are the handler layers, that handle all errors/exceptions for PHP application.

**Install**

```
composer require jinnguyen/puja-error
```

**Usage**

```
include '/path/to/vendor/autoload.php';
use Puja\Error\ErrorManager;
```

**Examples**

```
class A
{
    public function b(array $erroMessage = array())
    {
        print_r($erroMessage); // viewsource to see how this function work
    }
}

use Puja\Error\ErrorManager;
new ErrorManager(array(
    'enabled' => true, // toggle on/off Error Manager
    'debug' => true, // toggle on/off mode DEBUG
    'error_level' => E_ALL, // same with error_reporting()
    'callback_fn' => array(new A(), 'b')) // callback function, will call after application get error (you can do some stuff like: log errors, roll back db transaction, ...)
);

$a = new A();
$a->c();
```

**Result**
[![](https://github.com/jinnguyen/puja-error/raw/master/demo/puja-error-demo.png)](https://github.com/jinnguyen/puja-error/blob/master/demo/puja-error-demo.png)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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

3494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25e5bd31b5dd70d47cbdc738bded06dbabfba3d584acce63c2c4b4fb7847f39d?d=identicon)[jinnguyen](/maintainers/jinnguyen)

---

Top Contributors

[![linhnnmt](https://avatars.githubusercontent.com/u/162856460?v=4)](https://github.com/linhnnmt "linhnnmt (2 commits)")[![linhnmt](https://avatars.githubusercontent.com/u/10231628?v=4)](https://github.com/linhnmt "linhnmt (1 commits)")

---

Tags

errorpujaPuja Error

### Embed Badge

![Health badge](/badges/jinnguyen-puja-error/health.svg)

```
[![Health](https://phpackages.com/badges/jinnguyen-puja-error/health.svg)](https://phpackages.com/packages/jinnguyen-puja-error)
```

###  Alternatives

[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.7M10](/packages/rollbar-rollbar-laravel)[analog/analog

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

3511.6M24](/packages/analog-analog)[jenssegers/rollbar

Rollbar error monitoring integration for Laravel projects

3241.1M2](/packages/jenssegers-rollbar)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1861.5M3](/packages/justbetter-magento2-sentry)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299571.0k1](/packages/larabug-larabug)[saasscaleup/laravel-log-alarm

Laravel log Alarm help you to set up alarm when errors occur in your system and send you a notification via Slack and email

26927.9k](/packages/saasscaleup-laravel-log-alarm)

PHPackages © 2026

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