PHPackages                             icyboy/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. icyboy/health-check

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

icyboy/health-check
===================

healthcheck for PHP

1.0.4(8y ago)02.7kMITPHPPHP &gt;=5.4.0

Since Oct 24Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)Used By (0)

HealthCheck
===========

[](#healthcheck)

Allows you to easily write healthchecks for your application and display a simple, aggregated report so you can quickly diagnose whether and why your app is having trouble (or whether you can blame someone else). You can also monitor your healthchecks with [nagios](http://www.nagios.org/), [zabbix](http://www.zabbix.com/), etc.

[![Build Status](https://camo.githubusercontent.com/8f9bf043baa09f876a53ed3668c666e180145f8be9b491091a53194358d3c06e/68747470733a2f2f7472617669732d63692e6f72672f69637978702f6865616c7468436865636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/icyxp/healthCheck)

#### Wait, what's a healthcheck?

[](#wait-whats-a-healthcheck)

Healthchecks are a great way to test system health and connectivity to other services. For example, you can verify connectivity to memcache or mysql, that your app can read / write to certain files, or that your API key for a third-party service is still working.

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

[](#installation)

You can install this into your project using [composer](http://getcomposer.org/doc/00-intro.md#installation-nix). Create a `composer.json` file in the root of your project and add the following:

```
{
    "require": {
        "php": ">=5.4.0",
        "icyboy/health-check": "~1.0"
    }
}
```

Run `composer install`, include `vendor/autoload.php`, and you're off to the races!

Example Usage
-------------

[](#example-usage)

#### Checks

[](#checks)

```
use Icyboy\HealthCheck\HealthManager;
use Icyboy\HealthCheck\HealthException;

$hc = new HealthManager();

$hc->addCheck('info', function(){
    return "response extra message";
});

$hc->addCheck('pass', function() {
    return true;
});

$hc->addCheck('fail', function() {
    return false;
});

$config["version"] = 123;
$hc->addCheck('xxx', function() use ($config) {
    if ($config["version"] == "123") {
        return $config;
    } else {
        throw new HealthException("something was wrong");
    }
});

echo json_encode($hc->check());
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~21 days

Total

5

Last Release

3046d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.0.1PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b20dab04484e08344c406587bd252bd8dbfaa1ed672f2555f1770c712c238b1?d=identicon)[icyboy](/maintainers/icyboy)

---

Top Contributors

[![icyxp](https://avatars.githubusercontent.com/u/1527903?v=4)](https://github.com/icyxp "icyxp (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[knplabs/knp-menu-bundle

This bundle provides an integration of the KnpMenu library

1.4k53.8M315](/packages/knplabs-knp-menu-bundle)[lipis/flag-icons

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.0k27.5k4](/packages/lipis-flag-icons)[graphp/graphviz

GraphViz graph drawing for the mathematical graph/network library GraPHP.

3232.1M49](/packages/graphp-graphviz)[davidpiesse/nova-map

Map field for Laravel Nova

114224.3k](/packages/davidpiesse-nova-map)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[php-mp4box/php-mp4box

PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box

16217.3k1](/packages/php-mp4box-php-mp4box)

PHPackages © 2026

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