Download the PHP package rob-lester-jr04/laravel-health-expansion without Composer
On this page you can find all versions of the php package rob-lester-jr04/laravel-health-expansion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rob-lester-jr04/laravel-health-expansion
More information about rob-lester-jr04/laravel-health-expansion
Files in rob-lester-jr04/laravel-health-expansion
Package laravel-health-expansion
Short Description An expansion pack for Spatie Laravel Health package
License MIT
Informations about the package laravel-health-expansion
Expand the reach of your health checks!
Using this package to add more health checks to Spatie Health Checks for Laravel.
Installation
Laravel will automatically register the service provider.
Here's an example where we'll monitor errors in PaperTrail.
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:
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
First, set the API key in the .env
file.
Then enable the check in the service provider
Testing
All versions of laravel-health-expansion with dependencies
guzzlehttp/guzzle Version ^7.7
mailgun/mailgun-php Version ^3.5
nesbot/carbon Version ^2.67|^3.0