Check versions of vital parts of the application
wt-health/laravel-health-check is a Laravel package for check versions of vital parts of the application.
It currently has 0 GitHub stars and 24.974 downloads on Packagist (latest version v1.1.0).
Install it with composer require wt-health/laravel-health-check.
Discover more Laravel packages by wt-health
or browse all Laravel packages to compare alternatives.
Last updated
Adds custom version check based on spatie/laravel-health
composer require wthealth/laravel-health-check
To have logs and metrics logged in Datadog, you must schedule health check command on your setup.
serverless.yaml
artisan:
handler: artisan
runtime: php-83-console
timeout: 720 # in seconds
layers:
- ${bref-extra:gd-php-83}
- ${bref-extra:redis-php-83}
events:
- schedule:
rate: rate(12 hours)
input: '"health:check"'
You may configure these environment variable below accordingly
HEALTH_API_ROUTE_ENABLED= # enable /health-check endpoint - default: false
HEALTH_API_KEY= # used to secure /health-check endpoint
HEALTH_API_PACKAGES= # packages ( comma separated ) to have its versions checked
You can health check either accessing /health-check endpoint or running php artisan health:list --fresh
A schedule job runs every day and output logs that are ingested by Datadog
The MIT License (MIT). Please see License File for more information.