Download the PHP package chocofamilyme/laravel-healthcheck without Composer
On this page you can find all versions of the php package chocofamilyme/laravel-healthcheck. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chocofamilyme/laravel-healthcheck
More information about chocofamilyme/laravel-healthcheck
Files in chocofamilyme/laravel-healthcheck
Package laravel-healthcheck
Short Description Serves functionality of healthchecks of your application
License BSD-3-Clause
Informations about the package laravel-healthcheck
Laravel Health Check Library
Health Check library adds new endpoints(routes) to your project which are used to check some services of your application. For example you want to check "Database Connection" of your microservice.
Installation
Publishing the configuration (optional)
Checks
- Database connection check
- Cache write&read check
- Sessions write&read check
- Storage check
Routes
-
/health
- /health/extended
How to write your custom checks
Create a class which implements Chocofamilyme\LaravelHealthCheck\Services\Checks\ComponentCheckInterface and add it to healthcheck.php config file like
Responses
There is a configuration param which describes which response class to use to output the response. For example
-
/health - Chocofamilyme\LaravelHealthCheck\Responses\Response::class output would look like this
- /health - Chocofamilyme\LaravelHealthCheck\Responses\Response::class output would look like this
Feel free to add your responses, if you want for example to output it in a view instead json.
All versions of laravel-healthcheck with dependencies
ext-json Version *
illuminate/cache Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/database Version ^8.0|^9.0|^10.0
illuminate/session Version ^8.0|^9.0|^10.0
illuminate/routing Version ^8.0|^9.0|^10.0
illuminate/http Version ^8.0|^9.0|^10.0