Download the PHP package oat-sa/lib-health-check without Composer
On this page you can find all versions of the php package oat-sa/lib-health-check. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oat-sa/lib-health-check
More information about oat-sa/lib-health-check
Files in oat-sa/lib-health-check
Download oat-sa/lib-health-check
More information about oat-sa/lib-health-check
Files in oat-sa/lib-health-check
Vendor oat-sa
Package lib-health-check
Short Description OAT Health Check Library
License GPL-2.0-only
Package lib-health-check
Short Description OAT Health Check Library
License GPL-2.0-only
Please rate this library. Is it a good library?
Informations about the package lib-health-check
Health Check Library
Health checks PHP library.
Table of contents
- Installation
- Usage
- Tests
Installation
Usage
This library provides a CheckerInterface.
On the HealthChecker
class performChecks()
method execution, a CheckerResultCollection instance is returned, aggregating all checkers results information.
For example, you need first to create CheckerInterface implementations as follows:
Then register the checkers into the HealthChecker, and perform checks as following:
Notes:
- you can provide to the
HealthChecker
(as 2nd constructor parameter) a LoggerInterface instance to customise its logging behaviour. - by default, the
NullLogger
will be used. - it is recommended to catch only known exceptions in order to form an appropriate result message. The unknown exceptions and errors should be bubbled up to the
HealthCheker
level.
Tests
To run tests:
Note: see phpunit.xml.dist for available test suites.
All versions of lib-health-check with dependencies
PHP Build Version
Package Version
The package oat-sa/lib-health-check contains the following files
Loading the files please wait ....