PHPackages                             coreproc/laravel-healthcheck - 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. coreproc/laravel-healthcheck

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

coreproc/laravel-healthcheck
============================

0.5.2(10mo ago)016.2k↓34.8%MITPHP

Since Jan 2Pushed 10mo ago2 watchersCompare

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

READMEChangelog (9)DependenciesVersions (10)Used By (0)

Laravel Healthcheck
===================

[](#laravel-healthcheck)

This package provides a simple healthcheck endpoint for your Laravel application.

[![Import Action](https://raw.githubusercontent.com/coreproc/laravel-healthcheck/main/docs/healthcheck.png)](https://raw.githubusercontent.com/coreproc/laravel-healthcheck/main/docs/healthcheck.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require coreproc/laravel-healthcheck
```

Publish the config file:

```
php artisan vendor:publish --provider="Coreproc\LaravelHealthcheck\HealthcheckServiceProvider"
```

Usage
-----

[](#usage)

Once installed, you can access the healthcheck endpoint at `/healthcheck`.

You can configure the path in the `config/healthcheck.php` file along with specifying which services you want to check.

```
// config/healthcheck.php
return [

    'path' => 'healthcheck',

    'database' => true,

    'redis' => true,

    'horizon' => true,

    'scheduler' => false,

];
```

### Cron Job / Scheduler

[](#cron-job--scheduler)

If you want to check if the scheduler is running, you should add the following to your scheduler in `app/Console/Kernel.php`:

```
$schedule->call(function () {
    Cache::put('scheduler_last_run', now());
})->everyMinute();
```

This will update the cache key `scheduler_last_run` every minute. The healthcheck will check if this key has been updated in the last 2 minutes.

### Logging for Cloudwatch

[](#logging-for-cloudwatch)

The healthcheck will log the status of the checks if there is an unavailable service. The logs will contain the status of the service and the message through the `context` of the log.

Example log in JSON:

```
{
    "origin": "app.web",
    "message": "Scheduler is not running.",
    "context": {
        "is_scheduler_running": false,
        "last_run": "2024-03-25 05:26:01",
        "include_in_metrics": false
    },
    "level": 400,
    "level_name": "ERROR",
    "channel": "local",
    "extra": {}
}
```

The following are the possible context of the the healthcheck logs:

- `is_database_connected` - Boolean if the database is connected.
- `is_redis_connected` - Boolean if the redis is connected.
- `is_horizon_running` - Boolean if the horizon is running.
- `is_scheduler_running` - Boolean if the scheduler is running.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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 ~70 days

Recently: every ~117 days

Total

9

Last Release

304d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7066371?v=4)[CoreProc](/maintainers/coreproc)[@CoreProc](https://github.com/CoreProc)

---

Top Contributors

[![chrisbjr](https://avatars.githubusercontent.com/u/571279?v=4)](https://github.com/chrisbjr "chrisbjr (12 commits)")

### Embed Badge

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

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

###  Alternatives

[umpirsky/currency-list

List of all currencies with names and ISO 4217 codes in all languages and all data formats.

326325.2k10](/packages/umpirsky-currency-list)[fuel/parser

FuelPHP 1.x Parser Package

601.2M5](/packages/fuel-parser)

PHPackages © 2026

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