PHPackages                             laragopl/laravel-monit - 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. laragopl/laravel-monit

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

laragopl/laravel-monit
======================

This package provides a simple way to send notifications to a specified endpoint whenever an error occurs in your Laravel application.

v0.0.1(1y ago)0342↓25%MITPHPPHP ^8.0

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laragopl/laravel-monit)[ Packagist](https://packagist.org/packages/laragopl/laravel-monit)[ RSS](/packages/laragopl-laravel-monit/feed)WikiDiscussions develop Synced 1mo ago

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

laragopl/laravel-monit
======================

[](#laragopllaravel-monit)

A lightweight Laravel package for reporting errors to an external monitoring service.

---

Features:
---------

[](#features)

- Provides a configurable integration for sending error details to a remote endpoint.

---

Quick Example:
--------------

[](#quick-example)

```
use Laragopl\LaravelMonit\app\Facades\Monit;

Monit::send($throwable)
```

Sends detailed context information about the error, including file, request, and user data.

---

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

[](#installation)

```
composer require laragopl/laravel-monit
```

### Vendor Resource Publishing

[](#vendor-resource-publishing)

```
php artisan vendor:publish --tag=monit
```

---

Configuration
-------------

[](#configuration)

The package requires two new environment variables. Add the following to your .env file:

```
MONIT_URL=https://your-monitoring-endpoint.com/api/report
MONIT_TOKEN=your_bearer_token_here
```

### Publish configuration

[](#publish-configuration)

```
php artisan vendor:publish --tag=monit-config
```

---

API Request Details
-------------------

[](#api-request-details)

### `Monit::send($throwable)`

[](#monitsendthrowable)

The `Monit::send($throwable)` method will transmit the following data:

```
POST https://your-monitoring-endpoint.com/api/report

```

```
Headers:
Accept => application/json
Authorization => Bearer your_bearer_token_here

```

```
{
  "app_name":  "App name",
  "environment": "App environment",
  "message": "Error message",
  "file": "Error file in which error occurred",
  "line": "Error line in file",
  "trace": "Error trace",
  "url": "URL of request on which error occurred",
  "method": "HTTP method of request on which error occurred",
  "http_user_agent": "User agent",
  "remote_addr": "User IP Address",
  "level": "Error level"
}
```

Some of the fields (like url, http\_user\_agent, or remote\_addr) may be empty depending on the execution context (e.g. during CLI or queue execution).

---

License
-------

[](#license)

This package is open-source and licensed under the MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance46

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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

Unknown

Total

1

Last Release

403d ago

### Community

Maintainers

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

---

Top Contributors

[![msamsellarago](https://avatars.githubusercontent.com/u/117830355?v=4)](https://github.com/msamsellarago "msamsellarago (3 commits)")

### Embed Badge

![Health badge](/badges/laragopl-laravel-monit/health.svg)

```
[![Health](https://phpackages.com/badges/laragopl-laravel-monit/health.svg)](https://phpackages.com/packages/laragopl-laravel-monit)
```

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[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).

14642.7k1](/packages/guanguans-laravel-exception-notify)[regulus/activity-log

A clean and simple Laravel 5 activity logger for monitoring user activity on a website or web application.

164220.1k2](/packages/regulus-activity-log)

PHPackages © 2026

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