PHPackages                             chris-ware/pulse-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. chris-ware/pulse-health-check

ActiveLibrary

chris-ware/pulse-health-check
=============================

 Combine the power of Laravel Pulse with Spatie's Health Checks

1.1.0(5mo ago)5271↓50%[3 PRs](https://github.com/chris-ware/pulse-health-check/pulls)MITPHPPHP ^8.1CI passing

Since Dec 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/chris-ware/pulse-health-check)[ Packagist](https://packagist.org/packages/chris-ware/pulse-health-check)[ Docs](https://github.com/chris-ware/pulse-health-check)[ RSS](/packages/chris-ware-pulse-health-check/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (16)Versions (7)Used By (0)

Pulse Health Checks
===================

[](#pulse-health-checks)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ef35d46b47b8905048dd31c226ca44fd125240c63c68d48e591b201998a0f946/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63687269732d776172652f70756c73652d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chris-ware/pulse-health-check)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6aa5626a1a9244f481fc3ec9b522fcca39c665c7c4a60ef596d915591483083e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63687269732d776172652f70756c73652d6865616c74682d636865636b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/chris-ware/pulse-health-check/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/865e73ddb238c88172d7d2008e2bbd7a0661593e49bb4c30aed54f099e83682f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63687269732d776172652f70756c73652d6865616c74682d636865636b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/chris-ware/pulse-health-check/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/722349bbacea7a2e1b4e973f2c44efeef3614ee10733acc1b0dada8734c1041c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63687269732d776172652f70756c73652d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chris-ware/pulse-health-check)

Combine the power of Laravel Pulse with Spatie's Health Checks

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

[](#installation)

You can install the package via composer:

```
composer require chris-ware/pulse-health-check
```

Usage
-----

[](#usage)

### Cache Hit Ratio Check

[](#cache-hit-ratio-check)

This check will warn or fail if the cache hit ratio hits a certain percentage threshold. By default, it will fail at 10% hit ratio and warn at 25%.

```
use ChrisWare\PulseHealthCheck\Checks\PulseCacheHitRatioCheck;

PulseCacheHitRatioCheck::new();
```

Configure the failure and warning levels:

```
use ChrisWare\PulseHealthCheck\Checks\PulseCacheHitRatioCheck;

PulseCacheHitRatioCheck::new()->failWhenSizeRatioBelow(25)->warnWhenSizeRatioBelow(50);
```

### Generic Check

[](#generic-check)

This generic check will accommodate most basic circumstances for Pulse aggregates. Every check must have a defined `for` method on it for it to understand which aggregate type to use.

Example for slow query aggregation:

```
use ChrisWare\PulseHealthCheck\Checks\PulseCheck;

PulseCheck::new()
    ->for('slow_query')
    ->failWhenAbove(5)
    ->warnWhenAbove(3)
    ->interval(\Carbon\CarbonInterval::minutes(5));
```

Example for user request aggregation:

```
use ChrisWare\PulseHealthCheck\Checks\PulseCheck;

PulseCheck::new()
    ->for('user_request')
    ->aggregate('count')
    ->failWhenAbove(500)
    ->warnWhenAbove(300)
    ->interval(\Carbon\CarbonInterval::minutes(5));
```

#### Available methods

[](#available-methods)

**for**: Determine the aggregation type to use

**aggregate**: Determine the aggregation value to use (defaults to `max`)

**failWhenAbove**: Set the value to fail if greater than or equal to

**failWhenBelow**: Set the value to fail if less than or equal to

**warnWhenAbove**: Set the value to warn if greater than or equal to

**warnWhenBelow**: Set the value to warn if less than or equal to

**interval**: The CarbonInterval for aggregations to be evaluated (defaults to 1 hour)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Chris Ware](https://github.com/chris-ware)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

3

Last Release

152d ago

Major Versions

0.1 → 1.02023-12-12

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (12 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![chris-ware](https://avatars.githubusercontent.com/u/19684457?v=4)](https://github.com/chris-ware "chris-ware (5 commits)")

---

Tags

laravelChris Warepulse-health-check

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chris-ware-pulse-health-check/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)

PHPackages © 2026

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