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

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

dennzo/health-check
===================

A library containing tools for outputting json information for monitoring systems.

1.0.0-beta(3y ago)025[3 issues](https://github.com/dennzo/health-check/issues)MITPHPPHP &gt;=7.4

Since Nov 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dennzo/health-check)[ Packagist](https://packagist.org/packages/dennzo/health-check)[ RSS](/packages/dennzo-health-check/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Dennzo Monitoring Tools
=======================

[](#dennzo-monitoring-tools)

[![GitHub issues](https://camo.githubusercontent.com/f20dcb0312f3f55aede4bb14c1ff86634082f2ae4198a6c546497594effe6b7f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f64656e6e7a6f2f6d6f6e69746f72696e672d746f6f6c733f7374796c653d666c61742d737175617265)](https://github.com/dennzo/health-check/issues)[![Build Status](https://camo.githubusercontent.com/f2ed1e6cd149698259bf335659cebee4f16ac2c5b72972170b3506f4bcc26daf/68747470733a2f2f7472617669732d63692e6f72672f64656e6e7a6f2f6865616c74682d636865636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dennzo/health-check)[![GitHub](https://camo.githubusercontent.com/646bb30b4f0cf6c0f8dc1f5403109bc42c8d087840127e9852dd9d6448de6b92/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64656e6e7a6f2f6d6f6e69746f72696e672d746f6f6c733f7374796c653d666c61742d737175617265)](https://github.com/dennzo/health-check/blob/master/LICENSE.md)[![GitHub release (latest by date)](https://camo.githubusercontent.com/fe7f0054b859353d27f1fff7280608e97579a256b9bc27d4cf758da483156c03/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f64656e6e7a6f2f6d6f6e69746f72696e672d746f6f6c733f7374796c653d666c61742d737175617265)](https://github.com/dennzo/health-check/releases)[![Packagist PHP Version Support](https://camo.githubusercontent.com/4f07e3b29baa1f288ca2beb527a5be0df9567e051f18698080e0c685a0bf24e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64656e6e7a6f2f6d6f6e69746f72696e672d746f6f6c733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dennzo/health-check)

This package contains a standardized format for easy monitoring checks.

The tools will generate an output in the below format.

```
{
    "status":"OK",
    "applicationName":"foo-service",
    "version":"1.1",
    "environment":"prod"
}
```

You should set the `status` manually.

The following information will be automatically detected.

- GIT Version
- Development Environment (ex. dev, test, prod)
- Name of the application

The git tag and application name is **ONLY** detected automatically if...

- ...the server has git installed
- ...the application itself is a git repository

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

[](#installation)

```
composer require dennzo/monitoring-tools

```

Usage
-----

[](#usage)

Use the Class MonitoringTools to implement this feature in your application.

Depending on your application you will need to create the MonitoringController and define a health\_check route.

```
// Json
MonitoringTools::provideHealthCheckAsJson();

// Object
MonitoringTools::provideHealthCheckAsObject();
```

[You can find some more examples and explanation here.](https://github.com/dennzo/monitoring-tools/wiki)

Defaults
--------

[](#defaults)

NameDefaultDescriptionStatusOKYou should override this within your application, for example by testing the apps functionality.Git VersionAutomatic mechanism or nullIf GIT is installed and the current project is a git repository it will automatically detect this.EnvironmentAutomatic mechanism or nullThe environment is read to see if certain variables exist.Application NameAutomatic mechanism or nullIf GIT is installed and the current project is a git repository it will automatically detect this.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~840 days

Total

2

Last Release

1166d ago

Major Versions

v0.1-alpha → 1.0.0-beta2023-03-03

PHP version history (2 changes)v0.1-alphaPHP &gt;=7.2

1.0.0-betaPHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d62ad31d03f1947d4fae02a6b4472a47af43215b720875740f7caf2aeebdada2?d=identicon)[dennzo](/maintainers/dennzo)

---

Top Contributors

[![dennzo](https://avatars.githubusercontent.com/u/24611161?v=4)](https://github.com/dennzo "dennzo (20 commits)")

---

Tags

jsonmonitoringcheckhealthhealth check

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4728.7M16](/packages/liip-monitor-bundle)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)[ohdearapp/health-check-results

Create application health check results for Oh Dear

10175.9k8](/packages/ohdearapp-health-check-results)

PHPackages © 2026

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