Download the PHP package 68publishers/health-check without Composer
On this page you can find all versions of the php package 68publishers/health-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 68publishers/health-check
More information about 68publishers/health-check
Files in 68publishers/health-check
Package health-check
Short Description Check the status of an application services.
License MIT
Informations about the package health-check
Health check
:heartpulse: Health check for external services that are important for your application.
Installation
The best way to install 68publishers/health-check
is using Composer:
Standalone usage
Available service checkers
- PDO -
SixtyEightPublishers\HealthCheck\ServiceChecker\PDOServiceChecker
- Redis -
SixtyEightPublishers\HealthCheck\ServiceChecker\RedisServiceChecker
- Http -
SixtyEightPublishers\HealthCheck\ServiceChecker\HttpServiceChecker
You can create your own service checker. Just create a class that implements the interface ServiceCheckerInterface
.
Integration into Nette Framework
The package provides compiler extensions for easy integration with Nette Framework.
Configuration example
Now the service of type SixtyEightPublishers\HealthCheck\HealthCheckerInterface
is accessible in DIC.
Health check using Symfony Console
Now you can run this command:
Health check using Nette Application
The extension automatically appends the health check route into your RouteList. If you want to disable this behaviour, please set the option route
to false
and add the route to your route factory manually e.g.:
Now you can check your services through an endpoint your-domain.com/health-check
.
The endpoint returns the status code 200
if everything is ok and 503
if some service check failed.
Contributing
Before opening a pull request, please check your changes using the following commands
All versions of health-check with dependencies
ext-json Version *