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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. chris-ware/pulse-health-check

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

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

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

1.1.0(6mo ago)5517↑175%[4 issues](https://github.com/chris-ware/pulse-health-check/issues)[4 PRs](https://github.com/chris-ware/pulse-health-check/pulls)MITPHPPHP ^8.1CI passing

Since Dec 12Pushed 2mo 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 today

READMEChangelog (3)Dependencies (16)Versions (8)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

40

—

FairBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

205d ago

Major Versions

0.1 → 1.02023-12-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/671521?v=4)[Chris Ware](/maintainers/chrisware)[@chrisware](https://github.com/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

87512.0M165](/packages/spatie-laravel-health)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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