PHPackages                             devolicious/oh-dear-app-health-bundle - 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. devolicious/oh-dear-app-health-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

devolicious/oh-dear-app-health-bundle
=====================================

A simple Symfony bundle to integrate OhDear Application Health monitoring

1.0.1(2y ago)0836[1 PRs](https://github.com/Devolicious/oh-dear-app-health-bundle/pulls)MITPHPPHP ^8.1

Since Nov 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Devolicious/oh-dear-app-health-bundle)[ Packagist](https://packagist.org/packages/devolicious/oh-dear-app-health-bundle)[ RSS](/packages/devolicious-oh-dear-app-health-bundle/feed)WikiDiscussions master Synced 1mo ago

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

OhDear App Health bundle
========================

[](#ohdear-app-health-bundle)

A simple Symfony bundle to integrate OhDear Application Health monitoring.

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

```
composer require devolicious/oh-dear-app-health-bundle
```

if you are using Symfony Flex, the bundle will be automatically enabled. Otherwise, enable it by adding it to your `bundles.php` file.

```
// bundles.php

return [
    // ...
    Devolicious\OhDearAppHealthBundle\OhDearAppHealthBundle::class => ['all' => true],
];
```

### Step 2: Configure the routes

[](#step-2-configure-the-routes)

add this to your `config/routes.yaml` file:

```
_health_check:
    resource: '@OhDearAppHealthBundle/Resources/config/routing.yaml'
```

or if you want to customize the route, just add your own route yaml file in `config/routes/` containing the following:

```
my_custom_health_check:
    path: /my-custom-health-check-route
    controller: Devolicious\OhDearAppHealthBundle\Controller\HealthController
    methods: [GET, HEAD]
```

How to use it
-------------

[](#how-to-use-it)

Create your own checkers by implementing the `Devolicious\OhDearAppHealthBundle\Checker\CheckerInterface` and tag them with `oh_dear_app_health.checker`:

```
# config/services.yaml
services:

    _instanceof:
        ...
        Devolicious\OhDearAppHealthBundle\Checker\CheckerInterface:
          tags: [ 'oh_dear_app_health.checker' ]
```

That's it! Your checkers will be automatically executed when the health check route is called.

But, you're also able to cache the result of your checkers. When you run the command `health:check` all your checkers will run and by default it will be stored in the default cache pool. You can change this overriding the `ResultStore` interface with any service implementing it.

```
services:
    ...
    # default configuration (already configured in the bundle)
    Devolicious\OhDearAppHealthBundle\Store\RequestStore: '@Devolicious\OhDearAppHealthBundle\Store\CachePoolStore'

    # custom configuration
    Devolicious\OhDearAppHealthBundle\Store\RequestStore: '@App\Store\MyCustomStore'
```

Within each checker you can define the frequency of how often the check should be executed in seconds.

Built-in checkers
-----------------

[](#built-in-checkers)

### DoctrineDatabaseChecker

[](#doctrinedatabasechecker)

This checker is included in the library. It is not enabled by default as you might not need it or you are using a different database configuration. It also enables to reuse the checker when having multiple database connections. Assuming you have added the `_instanceof` configuration as described above, you can add the following to your `services.yaml` file:

```
# config/services.yaml
services:
    ...
    # Example for simple setup with 1 database connection and autowire enabled
    Devolicious\OhDearAppHealthBundle\Checker\DoctrineConnectionChecker: ~
```

If you have multiple database connections, you can add the following to your `services.yaml` file:

```
# config/services.yaml
services:
    ...
    # Example for default connection with MySQL
    app.mysql_database_checker:
        class: Devolicious\OhDearAppHealthBundle\Checker\DoctrineConnectionChecker
        arguments:
            - '@doctrine.orm.default_entity_manager'
            - 'MySQL Database' #optional, defaults to 'Database'

    # Example for an extra connection with a MSSQL database
    app.mssql_database_checker:
        class: Devolicious\OhDearAppHealthBundle\Checker\DoctrineConnectionChecker
        arguments:
            - '@doctrine.orm.mssql_entity_manager'
            - 'MSSQL Database' #optional, defaults to 'Database'
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance42

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9752befdfd6200dce06fd558a4b2281e36535dbaf2833759db151ebac4e6ab8c?d=identicon)[Devolicious](/maintainers/Devolicious)

---

Top Contributors

[![Devolicious](https://avatars.githubusercontent.com/u/360302?v=4)](https://github.com/Devolicious "Devolicious (30 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devolicious-oh-dear-app-health-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/devolicious-oh-dear-app-health-bundle/health.svg)](https://phpackages.com/packages/devolicious-oh-dear-app-health-bundle)
```

###  Alternatives

[liip/monitor-bundle

Liip Monitor Bundle

4728.7M16](/packages/liip-monitor-bundle)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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