PHPackages                             nordsec/status-checker - 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. nordsec/status-checker

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

nordsec/status-checker
======================

A library for implementing status checks

2.1.1(2y ago)11.7k7MITPHPPHP ^7.4 || ^8.0

Since Apr 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/NordSecurity/status-checker)[ Packagist](https://packagist.org/packages/nordsec/status-checker)[ RSS](/packages/nordsec-status-checker/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Status checker
==============

[](#status-checker)

Description
-----------

[](#description)

A library that tells you if any external service your app relies on is broken.

Extremely useful for:

- Creating a command that will show whether the app is ok after deployment
- Creating a status page for your system admins or monitoring software

Requirements
------------

[](#requirements)

- PHP &gt;=7.4 || &gt;=8.0

Usage
-----

[](#usage)

### CLI

[](#cli)

1. Install the library

```
composer require nordsec/status-checker

```

2. Declare an instance for StatusCheckerService (preferably using a container), pass various status checkers that make sense for your project

```
$container[StatusCheckerService::class] = function (Container $container) {
    $configuration = $container['config'];

    return new StatusCheckerService([
        new DatabaseChecker('database.default_connection', $configuration['database']['default']),
        new RabbitMqChecker('rabbitmq.amqp_server', $configuration['queue']['connection_nordvpn_core']),
    ]);
};
```

3. If needed, register the command with your application

```
$container[StatusCheckCommand::class] = function (Container $container) {
    return new StatusCheckCommand([
        $container[StatusCheckerService::class],
    ]);
};

$container[ConsoleApplication::class] = $container->extend(
    ConsoleApplication::class,
    function (ConsoleApplication $consoleApplication, Container $container) {
        $consoleApplication->add($container[StatusCheckCommand::class]);

        return $consoleApplication;
    }
);
```

4. Run the command

```
bin/console status:check

```

### WEB

[](#web)

1. Install the library

```
composer require nordsec/status-checker

```

2. Declare an instance for StatusCheckerService (preferably using a container), pass various status checkers that make sense for your project

```
$container[StatusCheckerService::class] = function (Container $container) {
    $configuration = $container['config'];

    return new StatusCheckerService([
        new DatabaseChecker('database.default_connection', $configuration['database']['default']),
        new RabbitMqChecker('rabbitmq.nordvpn_core', $configuration['queue']['connection_nordvpn_core']),
    ]);
};
```

3. Create an instance of your controller (preferably using a container)

```
class StatusControllerProvider implements ServiceProviderInterface
{
    public function register(Container $container)
    {
        $container[StatusController::class] = function (Container $container) {
            $configuration = $container['config'];
            return new StatusController(
                $container[StatusCheckerService::class],
            );
        };
    }
}

```

4. Add needed routes

```
$app->get('/status', StatusController::class . ':index');
$app->get('/status/details', StatusController::class . ':details');

```

5. Access the above routes via your browser

- `/status` produces the overall (global) status
    - if all services produce an `OK` status it will output `{"status":"OK"}`
    - if any service fails it will output `{"status":"FAIL"}`
    - if any service is in maintenance it will output `{"status":"MAINTENANCE"}`
- `/status/details` produces more detailed output about the status of every individual service

```
{"database.default":"OK","database.other":"OK"}

```

```
{"database.default":"OK","database.other":"FAIL"}

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~236 days

Total

12

Last Release

736d ago

Major Versions

1.4.3 → 2.0.02022-03-15

PHP version history (2 changes)1.0.0PHP ^7.4

1.2.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1659891?v=4)[kerneldemon](/maintainers/kerneldemon)[@kerneldemon](https://github.com/kerneldemon)

---

Top Contributors

[![gedasli](https://avatars.githubusercontent.com/u/94166158?v=4)](https://github.com/gedasli "gedasli (6 commits)")[![andriuspetrauskis](https://avatars.githubusercontent.com/u/2466985?v=4)](https://github.com/andriuspetrauskis "andriuspetrauskis (5 commits)")[![developer-ns](https://avatars.githubusercontent.com/u/73163268?v=4)](https://github.com/developer-ns "developer-ns (5 commits)")[![dima-nordsec](https://avatars.githubusercontent.com/u/166585060?v=4)](https://github.com/dima-nordsec "dima-nordsec (2 commits)")[![sarunasnorkus](https://avatars.githubusercontent.com/u/245174406?v=4)](https://github.com/sarunasnorkus "sarunasnorkus (2 commits)")[![undriulisns](https://avatars.githubusercontent.com/u/255330382?v=4)](https://github.com/undriulisns "undriulisns (1 commits)")[![asilgalis](https://avatars.githubusercontent.com/u/3510588?v=4)](https://github.com/asilgalis "asilgalis (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nordsec-status-checker/health.svg)

```
[![Health](https://phpackages.com/badges/nordsec-status-checker/health.svg)](https://phpackages.com/packages/nordsec-status-checker)
```

###  Alternatives

[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.4M80](/packages/typo3-cms-redirects)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

1595.5k](/packages/eliashaeussler-typo3-form-consent)

PHPackages © 2026

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