TiendaNube / laravel-health-check by Fonso

Provides monitoring for the key components of your laravel app.
27,932
1
81
Package Data
Maintainer Username: Fonso
Package Create Date: 2017-03-29
Package Last Update: 2023-04-03
Language: PHP
License: Unknown
Last Refreshed: 2024-04-25 03:01:34
Package Statistics
Total Downloads: 27,932
Monthly Downloads: 649
Daily Downloads: 26
Total Stars: 1
Total Watchers: 81
Total Forks: 0
Total Open Issues: 0

laravel-health-checks

Allows your Laravel app to run health checks on itself

Usage

  • Add to Composer:
    • Repositories: { "type": "vcs", "url": "git@github.com:npmweb/laravel-health-check" },
    • Dependencies: "npmweb/laravel-health-check": "dev-master@dev",
    • composer update
  • Add service provider:

app.php

'providers' => array(
	...
	'NpmWeb\LaravelHealthCheck\LaravelHealthCheckServiceProvider',
);
  • Add route for the health check controller:

routes.php

Route::resource(
    'monitor/health',
    'NpmWeb\LaravelHealthCheck\Controllers\HealthCheckController',
    ['only' => ['index','show']]
);
  • Configure the health checks:
    • php artisan config:publish npmweb/laravel-health-check
    • Edit app/config/packages/npmweb/laravel-health-check/config.php

For information on each health check, see comments in the appropriate class under src/NpmWeb/LaravelHealthCheck/Checks.