New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

arquivei/laravel-health-checker

Laravel Health Checker
74,650 9
Install
composer require arquivei/laravel-health-checker
Latest Version:4.0.4
PHP:^8.0 || ^8.1 || ^8.2 || ^8.3
Laravel:10 · 11 · 12
Older releases:5 – 9
License:Apache-2.0
Last Updated:Mar 5, 2026
Links: GitHub  ·  Packagist
Maintainer: arquivei

Laravel Health Checker

Version Compatibility

Releases Laravel
1.x ^5.7
2.x ^7.30.3; ^8.22.1
3.x ^8.22.1; ^9.3.0
4.x ^10.0; ^11.0, ^12.0

Install

composer require arquivei/laravel-health-checker

Usage

Edit the config file config/health-checker.php see the comments there for more information

Available checkers

  • database Tests database connections.
  • cache Tests for caching data
  • directory-permission Tests permission in directories
  • queue Tests for queue

How to add a new checker

You only need to extent \Laravel\Health\Checkers\BaseChecker and add to services in config/health-checker.php.

Routes and Responses

To access the health status you can use the follow routes:

  • health/status Load and list all check services.
  • health/{service_name}/status Load only the chosen service and show his status.

The response for both cases will be like that:

{
    status: {
        code: 200,
        message: "OK"
    },
    health_status: [
        {
            cache: {
                is_healthful: true,
                message: null
            }
        },
        {
            database: {
                is_healthful: true,
                message: null
            }
        },
        {
            directory-permission: {
                is_healthful: false,
                message: "The directory /application/public/../storage/ is not writable."
            }
        },
        {
            queue: {
                is_healthful: true,
                message: null
            }
        }
    ]
}

Command usage

You can use the follow commands to check healthy in your cli application:

php artisan application-health:check-health

Or

php artisan application:health-check

Development

We provide docker images to help set up the development environment. So, in order to build the images, install the dependencies and run the tests, you may execute the command:

make

After the initial setup you can use the bin/php and bin/composer scripts (wrappers for the docker images) to run the tests and install new dependencies.

Related Packages

fivelab/diagnostic

The library for diagnostic application.

35,281 4
postalservice14/php-actuator

PHP port of Spring Actuator which provides an easy health checking capability of...

39,859 10
letflow/laravel-api-status

Provide status and health api endpoints

12,115 0
linfo/laravel

This is a Laravel Wrapper for the linfo package from jrgp

2,631 6
witify/devops

Health endpoint that reports the state of a Laravel application to the Witify po...

1,087 0

Version History

Version Released PHP Laravel License
4.0.4 ^8.0 || ^8.1 || ^8.2 || ^8.3 ^10.0 || ^11.0 || ^12.0 Apache-2.0
4.0.3 ^8.0 || ^8.1 || ^8.2 || ^8.3 ^10.0 || ^11.0 Apache-2.0
4.0.2 ^8.0 || ^8.1 || ^8.2 || ^8.3 ^10.0 Apache-2.0
4.0.1 ^8.0 || ^8.1 || ^8.2 || ^8.3 ^10.0 Apache-2.0
4.0.0 ^8.0 || ^8.1 ^10.0 Apache-2.0