PHPackages                             oat-sa/lib-health-check - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. oat-sa/lib-health-check

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oat-sa/lib-health-check
=======================

OAT Health Check Library

2.0.1(1y ago)047.9k↓44.2%1[1 issues](https://github.com/oat-sa/lib-health-check/issues)2GPL-2.0-onlyPHPPHP &gt;=8.2.0CI failing

Since Jan 24Pushed 1y ago37 watchersCompare

[ Source](https://github.com/oat-sa/lib-health-check)[ Packagist](https://packagist.org/packages/oat-sa/lib-health-check)[ RSS](/packages/oat-sa-lib-health-check/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (4)Versions (9)Used By (2)

Health Check Library
====================

[](#health-check-library)

[![Latest Version](https://camo.githubusercontent.com/e51b079dde304f842229776c7e906f50acb23bd8bf5cabdb5de7550481469040/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6f61742d73612f6c69622d6865616c74682d636865636b2e7376673f7374796c653d666c6174266c6162656c3d72656c65617365)](https://github.com/oat-sa/lib-health-check/tags)[![License GPL2](https://camo.githubusercontent.com/5c1958af3f6dca7769cf6ed25b4211a677c3868025a356d8d678e919e7a15eea/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d47504c253230322e302d626c75652e737667)](http://www.gnu.org/licenses/gpl-2.0.html)[![Build Status](https://camo.githubusercontent.com/d3e952da657ef267bf081449f6980bd9a573b490382e7aa955e5554b26afed31/68747470733a2f2f7472617669732d63692e6f72672f6f61742d73612f6c69622d6865616c74682d636865636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oat-sa/lib-health-check)[![Packagist Downloads](https://camo.githubusercontent.com/522a444283a1fe08a2032c3c7f41021b69835b4ebbd041492d709317e617d43a/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f61742d73612f6c69622d6865616c74682d636865636b2e737667)](https://packagist.org/packages/oat-sa/lib-health-check)

> Health checks PHP library.

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Tests](#tests)

Installation
------------

[](#installation)

```
$ composer require oat-sa/lib-health-check
```

Usage
-----

[](#usage)

This library provides a [HealthChecker](src/HealthChecker.php) object in charge to aggregate and execute implementations of the [CheckerInterface](src/Checker/CheckerInterface.php).

On the `HealthChecker` class `performChecks()` method execution, a [CheckerResultCollection](src/Result/CheckerResultCollection.php) instance is returned, aggregating all checkers results information.

For example, you need first to create [CheckerInterface](src/Checker/CheckerInterface.php) implementations as follows:

```
