PHPackages                             ohdearapp/health-check-results - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. ohdearapp/health-check-results

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

ohdearapp/health-check-results
==============================

Create application health check results for Oh Dear

1.0.3(9mo ago)10217.4k↓27.1%47MITPHPPHP ^8.0CI passing

Since Nov 19Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ohdearapp/health-check-results)[ Packagist](https://packagist.org/packages/ohdearapp/health-check-results)[ Docs](https://github.com/ohdearapp/health-check-results)[ GitHub Sponsors](https://github.com/ohdearapp)[ RSS](/packages/ohdearapp-health-check-results/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (7)Dependencies (7)Versions (8)Used By (7)

Create a health check report to be verified by Oh Dear
======================================================

[](#create-a-health-check-report-to-be-verified-by-oh-dear)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ad4022cd67b04c89bf8786bfd7b52bf1d25cf5257fc278269e5d429f4a67aff2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f68646561726170702f6865616c74682d636865636b2d726573756c74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ohdearapp/health-check-results)[![Tests](https://github.com/ohdearapp/health-check-results/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/ohdearapp/health-check-results/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/4efe78f2a9e54fc9ad8dae189882d4c764cf5989c27b2cad68dd094db1bf88ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f68646561726170702f6865616c74682d636865636b2d726573756c74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ohdearapp/health-check-results)

Using [Oh Dear](https://ohdear.app) you can monitor various aspects or your application and server. This way you could get alerts when:

- disk space is running low
- the database is down
- Redis cannot be reached
- mails cannot be sent
- there are many application errors in a small timeframe (via [Flare](https://flareapp.io))
- a reboot of your app is required
- ...

You can monitor any aspect of your app that you want.

Using this package you can build up the JSON that [Oh Dear](https://ohdear.app) expects for its health check.

To learn more head over to the [Application Health Monitoring docs at Oh Dear](https://ohdear.app/docs/general/application-health-monitoring).

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

[](#installation)

You can install the package via composer:

```
composer require ohdearapp/health-check-results
```

Usage
-----

[](#usage)

Here's an example that shows how you can create the JSON that Oh Dear expects for the health check.

```
$checkResults = new CheckResults(DateTime::createFromFormat('Y-m-d H:i:s', '2021-01-01 00:00:00'));

$checkResult = new CheckResult(
    name: 'UsedDiskSpace',
    label: 'Used disk space',
    notificationMessage: 'Your disk is almost full (91%)',
    shortSummary: '91%',
    status: CheckResult::STATUS_FAILED,
    meta: ['used_disk_space_percentage' => 91]
);

$checkResults->addCheckResult($checkResult);
```

This will output this JSON:

```
{
    "finishedAt": 1609459200,
    "checkResults": [
        {
            "name": "UsedDiskSpace",
            "label": "Used disk space",
            "notificationMessage": "Your disk is almost full (91%)",
            "shortSummary": "91%",
            "status": "failed",
            "meta": {
                "used_disk_space_percentage": 91
            }
        }
    ]
}

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance57

Moderate activity, may be stable

Popularity42

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~241 days

Recently: every ~362 days

Total

7

Last Release

283d ago

Major Versions

0.0.3 → 1.0.02021-12-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32144649?v=4)[Oh Dear](/maintainers/ohdearapp)[@ohdearapp](https://github.com/ohdearapp)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (34 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (6 commits)")[![Chris53897](https://avatars.githubusercontent.com/u/7104259?v=4)](https://github.com/Chris53897 "Chris53897 (2 commits)")[![pableu](https://avatars.githubusercontent.com/u/305859?v=4)](https://github.com/pableu "pableu (1 commits)")[![quisse](https://avatars.githubusercontent.com/u/2648853?v=4)](https://github.com/quisse "quisse (1 commits)")

---

Tags

healthohdearservermonitoringhealthapplicationohdearhealth-check-results

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ohdearapp-health-check-results/health.svg)

```
[![Health](https://phpackages.com/badges/ohdearapp-health-check-results/health.svg)](https://phpackages.com/packages/ohdearapp-health-check-results)
```

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4749.1M23](/packages/liip-monitor-bundle)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19228.2M16](/packages/datadog-php-datadogstatsd)[ohdearapp/ohdear-cli

A standalone CLI tool for Oh Dear monitoring.

1411.3k](/packages/ohdearapp-ohdear-cli)[ohdearapp/laravel-ohdear-webhooks

Handle Oh Dear webhook calls in a Laravel app

2327.5k3](/packages/ohdearapp-laravel-ohdear-webhooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
