PHPackages                             n2n/n2n-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. n2n/n2n-monitor

ActiveN2n-module[Logging &amp; Monitoring](/categories/logging)

n2n/n2n-monitor
===============

Monitor used for slow query alerts and frontend exceptions handler

v7.4.0(1y ago)03.6k↑80%LGPL-3.0-or-laterPHP

Since Dec 4Pushed 4w ago2 watchersCompare

[ Source](https://github.com/n2n/n2n-monitor)[ Packagist](https://packagist.org/packages/n2n/n2n-monitor)[ Docs](https://n2n.rocks/)[ RSS](/packages/n2n-n2n-monitor/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (8)Versions (8)Used By (0)

n2n-monitor
===========

[](#n2n-monitor)

Monitor module for n2n applications.

`monitor.js` is a clientside js error reporter for n2n.

PHP Setup
---------

[](#php-setup)

```
use n2n\monitor\ui\MonitorHtmlBuilder;

$monitorHtmlBuilder = new MonitorHtmlBuilder($view);
$monitorHtmlBuilder->meta()->setup();
```

This emits:

- `meta[name="monitor-url"]`
- the `n2n-monitor/monitor.js` script

Load `monitor.js` before other JavaScript code.

JavaScript
----------

[](#javascript)

Plain JavaScript projects do not need extra setup beyond `$monitorHtmlBuilder->meta()->setup()`.

The script installs:

- `window.n2nMonitor.report(error)`
- `window._n2nMonitorErrorHandler(error)`

Angular projects should forward caught Angular errors to `window.n2nMonitor.report(error)`.

Payload
-------

[](#payload)

Reports are POSTed as JSON to the URL from `meta[name="monitor-url"]`.

Payload fields:

- `discriminator`
- `severity`
- `name`
- `message`
- `stackTrace`
- `url`

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance69

Regular maintenance activity

Popularity21

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

Total

3

Last Release

28d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7785760?v=4)[n2n](/maintainers/n2n)[@n2n](https://github.com/n2n)

---

Top Contributors

[![andreasvonburg](https://avatars.githubusercontent.com/u/7785678?v=4)](https://github.com/andreasvonburg "andreasvonburg (28 commits)")

---

Tags

monitorn2nslow query

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/n2n-n2n-monitor/health.svg)

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

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4779.0M21](/packages/liip-monitor-bundle)[analog/analog

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

3511.6M24](/packages/analog-analog)[liuggio/statsd-client-bundle

Provides a statsd client and simple ready-to-use support for #Symfony2 Application

168734.2k](/packages/liuggio-statsd-client-bundle)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14845.8k1](/packages/guanguans-laravel-exception-notify)[putyourlightson/craft-sherlock

Security scanner and monitor to keep your site and CMS secure.

1659.6k4](/packages/putyourlightson-craft-sherlock)[rigor789/airbrake-laravel

Laravel package for the Airbrake API, which supports Errbit

1636.5k](/packages/rigor789-airbrake-laravel)

PHPackages © 2026

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