PHPackages                             illuma-law/healthcheck-mercure - 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. illuma-law/healthcheck-mercure

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

illuma-law/healthcheck-mercure
==============================

Focused mercure health check for Spatie's Laravel Health package.

v0.1.4(1mo ago)062MITPHPPHP ^8.3CI passing

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/illuma-law/healthcheck-mercure)[ Packagist](https://packagist.org/packages/illuma-law/healthcheck-mercure)[ Docs](https://github.com/illuma-law/healthcheck-mercure)[ GitHub Sponsors](https://github.com/illuma-law)[ RSS](/packages/illuma-law-healthcheck-mercure/feed)WikiDiscussions main Synced 1w ago

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

Healthcheck mercure for Laravel
===============================

[](#healthcheck-mercure-for-laravel)

[![Tests](https://github.com/illuma-law/healthcheck-mercure/actions/workflows/run-tests.yml/badge.svg)](https://github.com/illuma-law/healthcheck-mercure/actions)[![Packagist License](https://camo.githubusercontent.com/e60623f508586f049d48cfb8396ee411b0c9bc3be174381a1893c37462a3c1e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d626c7565)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/af9ee9f07f5504141faad4fad3068baebbcb92e69ee394f612e5b72258dbfd0d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696c6c756d612d6c61772f6865616c7468636865636b2d6d6572637572653f6c6162656c3d56657273696f6e)](https://packagist.org/packages/illuma-law/healthcheck-mercure)

A focused mercure health check for Spatie's [Laravel Health](https://spatie.be/docs/laravel-health/v1/introduction) package.

This package provides a simple, direct health check to verify that your application's Mercure hub is reachable and responding to HTTP requests.

Features
--------

[](#features)

- **Reachability Check:** Verifies that your Laravel application can successfully connect to the configured Mercure hub URL.
- **HTTP Status Validation:** Ensures the Mercure hub returns a successful HTTP status code (2xx).
- **Configurable Timeout:** Respects your configured timeout settings to prevent the health check from hanging.

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

[](#installation)

Require this package with composer:

```
composer require illuma-law/healthcheck-mercure
```

Usage &amp; Integration
-----------------------

[](#usage--integration)

Register the check inside your application's health service provider (e.g. `AppServiceProvider` or a dedicated `HealthServiceProvider`), alongside your other Spatie Laravel Health checks:

### Basic Registration

[](#basic-registration)

```
use IllumaLaw\HealthCheckMercure\MercureCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    MercureCheck::new(),
]);
```

### Expected Result States

[](#expected-result-states)

The check interacts with the Spatie Health dashboard and JSON endpoints using these states:

- **Ok:** Mercure hub is reachable and returned a 2xx status code.
- **Failed:** Mercure hub was unreachable, timed out, or returned an error status code (4xx/5xx).

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% 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 ~2 days

Total

5

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2affac64f2726a640084b203503518ca01f582536d60a0a299b614486ed95aaa?d=identicon)[miguelenes](/maintainers/miguelenes)

---

Top Contributors

[![miguelenes](https://avatars.githubusercontent.com/u/1568086?v=4)](https://github.com/miguelenes "miguelenes (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelhealthmercureilluma-law

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/illuma-law-healthcheck-mercure/health.svg)

```
[![Health](https://phpackages.com/badges/illuma-law-healthcheck-mercure/health.svg)](https://phpackages.com/packages/illuma-law-healthcheck-mercure)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58122.8k](/packages/laracraft-tech-laravel-useful-additions)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

24740.3k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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