PHPackages                             rob-lester-jr04/laravel-health-expansion - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rob-lester-jr04/laravel-health-expansion

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rob-lester-jr04/laravel-health-expansion
========================================

An expansion pack for Spatie Laravel Health package

1.0.1(1y ago)015.0k↑11.8%MITPHP

Since Jun 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/roblesterjr04/laravel-health-checks)[ Packagist](https://packagist.org/packages/rob-lester-jr04/laravel-health-expansion)[ RSS](/packages/rob-lester-jr04-laravel-health-expansion/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (12)Used By (0)

Expand the reach of your health checks!
=======================================

[](#expand-the-reach-of-your-health-checks)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d1c9d5d7231719bb4dcb97b783125e74b271c284a496a0cda2a0bd2bd16bbc10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f622d6c65737465722d6a7230342f6c61726176656c2d6865616c74682d657870616e73696f6e2e737667)](https://packagist.org/packages/rob-lester-jr04/laravel-health-expansion)[![PHP Composer](https://github.com/roblesterjr04/laravel-health-checks/actions/workflows/run-tests.yml/badge.svg)](https://github.com/roblesterjr04/laravel-health-checks/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/fa02aa798f1b742f3a8e2c1731aa6f4d3dc9febc0e82f74cc1498d99641b3495/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f622d6c65737465722d6a7230342f6c61726176656c2d6865616c74682d657870616e73696f6e2e737667)](https://packagist.org/packages/rob-lester-jr04/laravel-health-expansion)

Using this package to add more health checks to [Spatie Health Checks for Laravel](https://packagist.org/packages/rob-lester-jr04/laravel-health-expansion).

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

[](#installation)

```
composer require rob-lester-jr04/laravel-health-expansion
```

Laravel will automatically register the service provider.

Here's an example where we'll monitor errors in PaperTrail.

```
// typically, in a service provider

use Spatie\Health\Facades\Health;
use Lester\Health\Checks\Checks\PaperTrailCheck;

Health::checks([
	PaperTrailCheck::new()
		->onSystem('my-system-1'),
]);
```

By default, this will report a failure if there are more than 20 errors in the default time frame (10 minutes). It will report a warning if there are more than 10, and it will report as ok if the error count is under 10. The thresholds can be changed with the following methods:

```
...highCount();
...lowCount();

// Change time frame (in minutes)
...lastMinutes();
```

Available Checks
----------------

[](#available-checks)

This package also contains the following checks:

- MailgunDomainCheck
    - This check will get the status for your mailgun domain(s) so you can monitor if mailgun has flagged your deliverability.
- ApiCheck
    - This check allows you to get the laravel health from another application. Useful for creating a permenant dashboard screen that monitors all your other systems.
- PaperTrailCheck
    - Scans PaperTrail logs for a set number of errors in a set time frame.

### Using the MailGun domain check

[](#using-the-mailgun-domain-check)

First, set the API key in the `.env` file.

```
	MAILGUN_SECRET=########
```

Then enable the check in the service provider

```
use Spatie\Health\Facades\Health;
use Lester\Health\Checks\Checks\MailgunDomainCheck;

Health::checks([
	// ...

	MailgunDomainCheck::new()
		->domain('mg.example.com'),

	// ...
]);
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~92 days

Total

11

Last Release

692d ago

Major Versions

0.1.8 → 1.02024-01-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/37a376a6bb4b688512897fd2afdef71c99a37529f1b3002d43d699843eb9cbc7?d=identicon)[roblesterjr04](/maintainers/roblesterjr04)

---

Top Contributors

[![roblesterjr04](https://avatars.githubusercontent.com/u/6423115?v=4)](https://github.com/roblesterjr04 "roblesterjr04 (17 commits)")

---

Tags

spatiehealthmailgunhealthcheckhealth checkpapertrailexpansion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rob-lester-jr04-laravel-health-expansion/health.svg)

```
[![Health](https://phpackages.com/badges/rob-lester-jr04-laravel-health-expansion/health.svg)](https://phpackages.com/packages/rob-lester-jr04-laravel-health-expansion)
```

###  Alternatives

[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k5.7M57](/packages/spatie-laravel-analytics)[spatie/laravel-schedule-monitor

Monitor scheduled tasks in a Laravel app

9815.7M9](/packages/spatie-laravel-schedule-monitor)[spatie/laravel-google-calendar

Manage events on a Google Calendar

1.4k1.5M21](/packages/spatie-laravel-google-calendar)[spatie/ssl-certificate

A class to easily query the properties of an ssl certificate

7414.8M35](/packages/spatie-ssl-certificate)[spatie/laravel-google-fonts

Manage self-hosted Google Fonts in Laravel apps

4891.0M12](/packages/spatie-laravel-google-fonts)[spatie/laravel-personal-data-export

Create personal data downloads in a Laravel app

550543.8k8](/packages/spatie-laravel-personal-data-export)

PHPackages © 2026

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