cboxdk/laravel-health

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel

Maintainers

Package info

github.com/cboxdk/laravel-health

pkg:composer/cboxdk/laravel-health

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-03-03 11:18 UTC

This package is auto-updated.

Last update: 2026-03-03 13:53:44 UTC


README

Latest Version on Packagist GitHub Tests Action Status PHPStan Total Downloads PHP Version Laravel Version

Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel.

Quick Start

composer require cboxdk/laravel-health
php artisan vendor:publish --tag="health-config"
curl http://localhost/health

Features

  • Kubernetes Probes — liveness, readiness, and startup endpoints out of the box
  • Prometheus Metrics/health/metrics with health check status and system metrics
  • 11 Built-in Checks — database, cache, queue, storage, Redis, environment, schedule, CPU, memory, disk space
  • System Metrics — CPU load, memory, disk, network via cboxdk/system-metrics
  • Container Aware — automatic cgroup detection for Docker/Kubernetes
  • JSON Metrics API — structured system metrics at /health/metrics/json
  • HTML Dashboard — optional real-time status UI
  • Token & IP Auth — protect endpoints with bearer tokens and IP allowlists
  • Response Caching — configurable TTL to reduce check overhead
  • Fully Extensible — implement HealthCheck contract to add custom checks

Requirements

  • PHP 8.3+
  • Laravel 11.x or 12.x

Documentation

Full documentation is available in the docs/ directory.

Testing

composer test
composer analyse
composer format

Credits

License

The MIT License (MIT). Please see License File for more information.