PHPackages                             masgeek/laravel-health-checker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. masgeek/laravel-health-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

masgeek/laravel-health-checker
==============================

Laravel health checker helper

1.0.2(7mo ago)0198↓50%[1 issues](https://github.com/masgeek/laravel-health-checker/issues)[2 PRs](https://github.com/masgeek/laravel-health-checker/pulls)MITPHPPHP &gt;=8.2CI failing

Since Oct 8Pushed 5mo agoCompare

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

READMEChangelog (3)Dependencies (11)Versions (7)Used By (0)

Laravel Health Checker
======================

[](#laravel-health-checker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e06e54fe4a547167d9a7ba7b72e2e109fcd40e4ff3ecc1a156c6534927933a58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61736765656b2f6c61726176656c2d6865616c74682d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/masgeek/laravel-health-checker)[![Laravel Version](https://camo.githubusercontent.com/39278057f65965955eb9b449dd98601e9ae20470ad4daddfc637622c6fa00bd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/39278057f65965955eb9b449dd98601e9ae20470ad4daddfc637622c6fa00bd6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322d6f72616e67652e7376673f7374796c653d666c61742d737175617265)[![PHP Version](https://camo.githubusercontent.com/902724640e0b9bcb7b4f2c7036bfc04ee2ade44f94257ddf92507d5b5c2161b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/902724640e0b9bcb7b4f2c7036bfc04ee2ade44f94257ddf92507d5b5c2161b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c75652e7376673f7374796c653d666c61742d737175617265)[![License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A lightweight, configurable health-check endpoint for **Laravel 12+**.
Provides real-time diagnostics for critical services like database, cache, Redis, mail, queues, storage, and system resources.

---

🚀 Features
----------

[](#-features)

- Modular, configurable health checks
- JSON endpoint for integration with monitoring tools (Prometheus, Grafana, Kubernetes, etc.)
- Built-in support for:
    - Database connection and schema checks
    - Redis availability
    - Cache read/write
    - File storage read/write
    - Queue configuration
    - Mail transport
    - Disk usage (human-readable)
    - Pending migrations
    - Environment configuration
    - Loki server health
    - Log file write access

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
  composer require masgeek/laravel-health-checker
```

⚙️ Configuration
----------------

[](#️-configuration)

Publish the configuration file:

```
 php artisan vendor:publish --tag=healthcheck-config
```

Then edit `config/healthcheck.php` to configure your health checks:

```
return [
    'core' => [
        'database' => env('HEALTHCHECK_DATABASE', true),
        'cache' => env('HEALTHCHECK_CACHE', true),
        'queue' => env('HEALTHCHECK_QUEUE', true),
        'mail' => env('HEALTHCHECK_MAIL', false),
        'migrations' => env('HEALTHCHECK_MIGRATIONS', true),
        'env-config' => env('HEALTHCHECK_ENV_CONFIG', true),
    ],
    'infrastructure' => [
        'redis' => env('HEALTHCHECK_REDIS', false),
        'storage' => env('HEALTHCHECK_STORAGE', true),
        'disk-space' => env('HEALTHCHECK_DISK_SPACE', true),
        'logging' => env('HEALTHCHECK_LOGGING', true),
        'loki' => env('HEALTHCHECK_LOKI', false),
    ],
    'services' => [
        'loki_url' => env('LOKI_URL', null),
    ],
];
```

Each key corresponds to a built-in health check.

Disable what you don’t need by setting it to false.

🧠 Usage
-------

[](#-usage)

A new route will be automatically registered:

```
  GET /health
```

**Example response**

```
{
  "status": "healthy",
  "timestamp": "2025-10-07T10:00:00Z",
  "checks": {
    "database": {
      "status": "UP",
      "database": "fuelrod",
      "schema": "public",
      "total_tables": 54
    },
    "redis": {
      "status": "UP",
      "version": "7.2.4"
    },
    "disk-space": {
      "status": "UP",
      "total_space": "500 GB",
      "free_space": "230 GB",
      "used_percentage": "54%"
    }
  }
}
```

🧩 Customization
---------------

[](#-customization)

- To disable specific checks, update config/healthcheck.php.
- To check Loki server health, define LOKI\_URL in .env:

```
LOKI_URL=http://loki:3100
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance68

Regular maintenance activity

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.5% 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

3

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7697b801e0b866d1e274ac0e73cb0f09772e5a851bc50ae1bc0e74355e27c2e9?d=identicon)[masgeek](/maintainers/masgeek)

---

Top Contributors

[![masgeek](https://avatars.githubusercontent.com/u/6058175?v=4)](https://github.com/masgeek "masgeek (39 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)

PHPackages © 2026

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