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

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

saritasa/laravel-healthcheck
============================

Package for projects health-check

2.2.0(1y ago)28.7k↑25%1MITPHPPHP &gt;=7.1

Since Jan 22Pushed 1y ago9 watchersCompare

[ Source](https://github.com/Saritasa/php-laravel-healthcheck)[ Packagist](https://packagist.org/packages/saritasa/laravel-healthcheck)[ RSS](/packages/saritasa-laravel-healthcheck/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (8)Versions (11)Used By (0)

Laravel Health Check
====================

[](#laravel-health-check)

[![Build Status](https://github.com/Saritasa/php-laravel-healthcheck/workflows/build/badge.svg)](https://github.com/Saritasa/php-laravel-healthcheck/actions)[![CodeCov](https://camo.githubusercontent.com/8842940900d6105d683b0ddbb1836e79ff3f263cb42ffbfdd4f1ab7d20542445/68747470733a2f2f636f6465636f762e696f2f67682f53617269746173612f7068702d6c61726176656c2d6865616c7468636865636b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Saritasa/php-laravel-healthcheck)[![Release](https://camo.githubusercontent.com/f6d173bea81084b5c2b3931c5a60988c5844e898611a9220dea25f58d84294bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73617269746173612f7068702d6c61726176656c2d6865616c7468636865636b2e737667)](https://github.com/Saritasa/php-laravel-healthcheck/releases)[![PHPv](https://camo.githubusercontent.com/88421b359e9903cd4b18859a31505e4acb4ec4b1a938a795ef6adc581b9dedcb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73617269746173612f6c61726176656c2d6865616c7468636865636b2e737667)](http://www.php.net)[![Downloads](https://camo.githubusercontent.com/037332e3c7daad8bc040ab356b1a123e93093f8e2c0c1b7fdf4703f9b1f1ac90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617269746173612f6c61726176656c2d6865616c7468636865636b2e737667)](https://packagist.org/packages/saritasa/laravel-healthcheck)

Package for Laravel-based project self-diagnostics. Implements basic checks (ex. if application can connect to DB server) and allows extensibility (ex. implement custom checks)

Laravel 5.5+
------------

[](#laravel-55)

Install the `saritasa/laravel-healthcheck` package:

```
$ composer require saritasa/laravel-healthcheck
```

Configuration
-------------

[](#configuration)

- Publish configuration file:

```
php artisan vendor:publish --provider="Saritasa\LaravelHealthCheck\HealthCheckServiceProvider"
```

Configure the necessary checks in file `config/health_check.php`

```
    'checkers' => [
        'database' => \Saritasa\LaravelHealthCheck\Checkers\DatabaseHealthChecker::class,
        'redis' => \Saritasa\LaravelHealthCheck\Checkers\RedisHealthChecker::class,
        's3' => \Saritasa\LaravelHealthCheck\Checkers\S3HealthChecker::class,
    ],
```

You can add more custom checks - just add a class implementing `\Saritasa\LaravelHealthCheck\Contracts\ServiceHealthChecker` interface with single method `check()`that must return instance of `\Saritasa\LaravelHealthCheck\Contracts\CheckResult`.

Laravel Lumen 8.0+
------------------

[](#laravel-lumen-80)

Install the `saritasa/laravel-healthcheck` package:

```
$ composer require saritasa/laravel-healthcheck
```

Create a new file `config\health_check.php`:

```
