Download the PHP package illuma-law/healthcheck-mercure without Composer
On this page you can find all versions of the php package illuma-law/healthcheck-mercure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download illuma-law/healthcheck-mercure
More information about illuma-law/healthcheck-mercure
Files in illuma-law/healthcheck-mercure
Package healthcheck-mercure
Short Description Focused mercure health check for Spatie's Laravel Health package.
License MIT
Homepage https://github.com/illuma-law/healthcheck-mercure
Informations about the package healthcheck-mercure
Healthcheck mercure for Laravel
A focused mercure health check for Spatie's Laravel Health 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
- 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
Require this package with composer:
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
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
Run the test suite:
License
The MIT License (MIT). Please see License File for more information.
All versions of healthcheck-mercure with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/database Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
spatie/laravel-health Version ^1.39