PHPackages                             shantotonni/pm-error-monitor - 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. shantotonni/pm-error-monitor

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

shantotonni/pm-error-monitor
============================

Auto error/exception monitoring reporter for Laravel projects

v1.1.0(2mo ago)04MITPHPPHP &gt;=7.4

Since Apr 28Pushed 2mo agoCompare

[ Source](https://github.com/shantotonni/pm-error-monitor)[ Packagist](https://packagist.org/packages/shantotonni/pm-error-monitor)[ RSS](/packages/shantotonni-pm-error-monitor/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PM Error Monitor
================

[](#pm-error-monitor)

Automatically captures and reports Laravel exceptions to a central Project Management dashboard.

What it does
------------

[](#what-it-does)

- Hooks into Laravel's exception handler automatically
- Sends error details (message, file, line, stack trace, request data) to PM dashboard
- Groups duplicate errors (no spam)
- Auto-creates emergency tasks for critical errors
- Notifies assigned developers

---

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Laravel 8, 9, 10, or 11

---

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

[](#installation)

### Step 1 — Add repository to `composer.json`

[](#step-1--add-repository-to-composerjson)

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/shantotonni/pm-error-monitor"
    }
]
```

### Step 2 — Require the package

[](#step-2--require-the-package)

```
composer require shantotonni/pm-error-monitor
```

### Step 3 — Run the installer

[](#step-3--run-the-installer)

```
php artisan pm-monitor:install --project-id=YOUR_PROJECT_ID --token=YOUR_API_TOKEN --env=production
```

Get `project-id` and `token` from:

> **Project Management → Projects → Manage → API Keys → Error Monitor**

### Step 4 — Clear config and test

[](#step-4--clear-config-and-test)

```
php artisan config:clear
php artisan pm-monitor:test
```

---

What the installer does automatically
-------------------------------------

[](#what-the-installer-does-automatically)

ActionFileAdds `PM_MONITOR_*` variables`.env`Injects `PmMonitorHandler::report()``app/Exceptions/Handler.php`Publishes config`config/pm-monitor.php`---

Manual .env variables (if needed)
---------------------------------

[](#manual-env-variables-if-needed)

```
PM_MONITOR_URL=http://YOUR-PM-SERVER/api/monitoring/errors
PM_MONITOR_PROJECT_ID=1
PM_MONITOR_TOKEN=your_token_here
PM_MONITOR_ENV=production
PM_MONITOR_ENABLED=true
PM_MONITOR_TIMEOUT=3
```

---

Manual Handler.php snippet (if auto-patch fails)
------------------------------------------------

[](#manual-handlerphp-snippet-if-auto-patch-fails)

Inside `app/Exceptions/Handler.php` → `register()` method:

```
public function register(): void
{
    $this->reportable(function (\Throwable $e) {
        \PmMonitor\PmMonitorHandler::report($e);
    });
}
```

---

Artisan commands
----------------

[](#artisan-commands)

CommandDescription`php artisan pm-monitor:install`Full auto-setup (.env + Handler.php patch)`php artisan pm-monitor:test`Send test error to verify connection---

Severity auto-detection
-----------------------

[](#severity-auto-detection)

ConditionSeverityDB / connection exceptioncriticalKeywords: payment, transaction, deploy, databasecriticalHTTP 5xxhighHTTP 4xxlowEverything elsemedium---

Uninstall
---------

[](#uninstall)

1. Remove `shantotonni/pm-error-monitor` from `composer.json`
2. Run `composer update`
3. Remove `PM_MONITOR_*` lines from `.env`
4. Remove `PmMonitorHandler::report($e)` from `Handler.php`

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance83

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

87d ago

### Community

Maintainers

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

---

Top Contributors

[![shantotonni](https://avatars.githubusercontent.com/u/17365159?v=4)](https://github.com/shantotonni "shantotonni (5 commits)")

### Embed Badge

![Health badge](/badges/shantotonni-pm-error-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/shantotonni-pm-error-monitor/health.svg)](https://phpackages.com/packages/shantotonni-pm-error-monitor)
```

###  Alternatives

[illuminate/log

The Illuminate Log package.

6225.3M647](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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