spatie/laravel-health
Monitor your Laravel app’s health by registering checks (disk space, queues, cache, etc.). Set warning/fail thresholds and get notified via mail or Slack when something goes wrong, so you can catch issues early and keep services running smoothly.
healthchecks.io)."This package lets us automate infrastructure health monitoring within our Laravel apps, reducing downtime and operational fire drills. For example, it can alert us if disk space drops below 20% or if payment gateways become unresponsive—before users notice. It’s a low-cost, high-impact way to improve reliability, especially for our SaaS customers who depend on 99.9% uptime. Implementation is minimal (a few lines of code), and it integrates with our existing Slack/email alerts. Think of it as ‘insurance for our infrastructure.’"
ROI:
"spatie/laravel-health gives us a batteries-included way to define and monitor critical infrastructure checks*—without reinventing the wheel. Here’s why it’s a no-brainer:
App\Checks\CustomServiceCheck). The package even includes Horizon queue monitoring and backup validation.Example Use Case:
Health::checks([
UsedDiskSpaceCheck::new()->failWhenUsedSpaceIsAbovePercentage(90),
DatabaseConnectionCheck::new()->failIfConnectionCannotBeEstablished(),
QueueCheck::new()->failAfterMinutes(5), // Alert if queues are stuck >5 mins
]);
Proposal: Let’s pilot this in staging first, then roll it out to production with checks for our critical dependencies. We can start with 3–5 key metrics and expand as needed."*
Tech Benefits:
How can I help you explore Laravel packages today?