PHPackages                             cboxdk/laravel-health - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. cboxdk/laravel-health

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

cboxdk/laravel-health
=====================

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

v1.0.1(1mo ago)0154MITPHPPHP ^8.3CI passing

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/cboxdk/laravel-health)[ Packagist](https://packagist.org/packages/cboxdk/laravel-health)[ Docs](https://github.com/cboxdk/laravel-health)[ RSS](/packages/cboxdk-laravel-health/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

Laravel Health
==============

[](#laravel-health)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fcf211dca3d486b32d898570c2614f283e10e421094460bcd2d3eec2811eafde/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63626f78646b2f6c61726176656c2d6865616c74682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cboxdk/laravel-health)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2f618e07ef9c6b68cec68fcfb4511ce11b53d052f4771b95b09303a0249350fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63626f78646b2f6c61726176656c2d6865616c74682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cboxdk/laravel-health/actions?query=workflow%3Arun-tests+branch%3Amain)[![PHPStan](https://camo.githubusercontent.com/f7a4e0599eaf2d9fe732c17cf2e26891a15176de455b6ecc6853064293c905a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63626f78646b2f6c61726176656c2d6865616c74682f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/cboxdk/laravel-health/actions?query=workflow%3Aphpstan+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/69a20e37251a06b3448c7a87bf650ee93e532e89a0a6732015505b61dd19ebee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63626f78646b2f6c61726176656c2d6865616c74682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cboxdk/laravel-health)[![PHP Version](https://camo.githubusercontent.com/7ae4febc3fe07b22f4bc0b19cee5c386b6ca262a9463a6ac04ec25f5fd4f1f25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f63626f78646b2f6c61726176656c2d6865616c74683f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/7ae4febc3fe07b22f4bc0b19cee5c386b6ca262a9463a6ac04ec25f5fd4f1f25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f63626f78646b2f6c61726176656c2d6865616c74683f7374796c653d666c61742d737175617265)[![Laravel Version](https://camo.githubusercontent.com/6d053cb2255ed5cb3f3301aa7274209ea0f1ceda8b50c277e69fd8a5ba851e0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31312e7825323025374325323031322e7825323025374325323031332e782d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/6d053cb2255ed5cb3f3301aa7274209ea0f1ceda8b50c277e69fd8a5ba851e0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31312e7825323025374325323031322e7825323025374325323031332e782d626c75653f7374796c653d666c61742d737175617265)

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

Quick Start
-----------

[](#quick-start)

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

Features
--------

[](#features)

- **Kubernetes Probes** — liveness, readiness, and startup endpoints out of the box
- **Prometheus Metrics** — `/health/metrics` with health check status and system metrics
- **10 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](https://github.com/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 &amp; 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
------------

[](#requirements)

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

Documentation
-------------

[](#documentation)

Full documentation is available in the [docs/](docs/introduction.md) directory.

Testing
-------

[](#testing)

```
composer test
composer analyse
composer format
```

Credits
-------

[](#credits)

- [Sylvester Damgaard](https://github.com/cboxdk)

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

53d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9761a79e61f2d5b9d650510dfb3555da18daf38f027aa84012c937e397e39a7?d=identicon)[cboxdk](/maintainers/cboxdk)

---

Top Contributors

[![sylvesterdamgaard](https://avatars.githubusercontent.com/u/2431914?v=4)](https://github.com/sylvesterdamgaard "sylvesterdamgaard (26 commits)")

---

Tags

laravelmonitoringhealthMetricsprometheuskuberneteshealth checkcbox

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cboxdk-laravel-health/health.svg)

```
[![Health](https://phpackages.com/badges/cboxdk-laravel-health/health.svg)](https://phpackages.com/packages/cboxdk-laravel-health)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[triadev/laravel-prometheus-exporter

A laravel and lumen service provider to export metrics for prometheus.

2728.2k1](/packages/triadev-laravel-prometheus-exporter)[jacobtims/filament-logger

Activity logger for filament

1721.0k4](/packages/jacobtims-filament-logger)

PHPackages © 2026

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