PHPackages                             ministryofjustice/opg-core-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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. ministryofjustice/opg-core-health-check

AbandonedArchivedLibrary[Debugging &amp; Profiling](/categories/debugging)

ministryofjustice/opg-core-health-check
=======================================

OPG Core Health Check ZF2 Module

1.0.1(10y ago)02.7k1[1 PRs](https://github.com/ministryofjustice/opg-core-health-check/pulls)ministryofjusticePHPPHP &gt;=5.4CI failing

Since Apr 20Pushed 7y ago59 watchersCompare

[ Source](https://github.com/ministryofjustice/opg-core-health-check)[ Packagist](https://packagist.org/packages/ministryofjustice/opg-core-health-check)[ Docs](https://github.com/ministryofjustice/opg-core-health-check)[ RSS](/packages/ministryofjustice-opg-core-health-check/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

OPG Health Check ZF2 Module
===========================

[](#opg-health-check-zf2-module)

This module provides zend services related to checking the health of the other opg core applications, specifically [opg-core-back-end](https://github.com/ministryofjustice/opg-core-back-end), [opg-core-front-end](https://github.com/ministryofjustice/opg-core-front-end) and [opg-core-auth-membrane](https://github.com/ministryofjustice/opg-core-auth-membrane)

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

[](#installation)

1. Install this module as a dependency on your zf2 project via Composer. If you don't have composer then follow the steps to download it from their site:
2. register module with your application

Your `composer.json` should look something like this

```
{
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:ministryofjustice/opg-core-health-check.git"
        }
    ],
    "require": {
        "ministryofjustice/opg-core-health-check": "1.0.*",
    }
}

```

Your `config/application.config.php` should look something like this

```
$modules = array(
    ...
    'HealthCheck',
);

```

Usage
-----

[](#usage)

**Example controller action:** uses the environmental variables checker service and returns error 500 and json error if there are any missing.

```
    public function checkEnvVarsAreSetAction()
    {
        try {
            $this->getServiceLocator()->get('EnvironmentVariablesChecker')->check();
        } catch (HttpException $e) {
            // Environment variable(s) missing:
            $this->getResponse()->setStatusCode($e->getStatusCode());

            return new JsonModel(array('error' => $e->getMessage()));
        }

        return $this->getResponse();
    }
```

Testing
-------

[](#testing)

1. Clone it.
2. Install dependencies via composer. If you don't have composer then follow the steps to download it from their site:
3. run PHPUnit.

```
git clone git@github.com:ministryofjustice/opg-core-health-check.git
cd opg-core-health-check.git
composer install
php ./vendor/bin/phpunit

```

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

[](#contributing)

1. Clone it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

History
-------

[](#history)

[2015-04-16](https://github.com/ministryofjustice/opg-core-health-check/commit/f4f135e33ab7fe3ca546f21584729f425657619a): Repository repurposed as a zf2 module from original empty zf2 skeleton app

Credits
-------

[](#credits)

- [Richard Saunders](https://github.com/rs-saunders)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 69.2% 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 ~56 days

Total

2

Last Release

3984d ago

### Community

Maintainers

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

---

Top Contributors

[![rs-saunders](https://avatars.githubusercontent.com/u/4743056?v=4)](https://github.com/rs-saunders "rs-saunders (9 commits)")[![eddiejaoude](https://avatars.githubusercontent.com/u/624760?v=4)](https://github.com/eddiejaoude "eddiejaoude (3 commits)")[![knasher](https://avatars.githubusercontent.com/u/1300648?v=4)](https://github.com/knasher "knasher (1 commits)")

---

Tags

opgministryofjustice

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ministryofjustice-opg-core-health-check/health.svg)

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

###  Alternatives

[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k149.7M969](/packages/symfony-web-profiler-bundle)[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k115.8M824](/packages/symfony-debug-bundle)[egulias/listeners-debug-command-bundle

Symfony 2 console command to debug listeners

56822.9k6](/packages/egulias-listeners-debug-command-bundle)[code-tool/jaeger-client-symfony-bridge

11382.2k](/packages/code-tool-jaeger-client-symfony-bridge)[matthimatiker/opcache-bundle

Displays the state of the PHP opcache in the Symfony profiler toolbar.

2288.2k](/packages/matthimatiker-opcache-bundle)[vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

1177.6k](/packages/vasek-purchart-tracy-blue-screen-bundle)

PHPackages © 2026

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