PHPackages                             illuma-law/healthcheck-redis - 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. [Caching](/categories/caching)
4. /
5. illuma-law/healthcheck-redis

ActiveLibrary[Caching](/categories/caching)

illuma-law/healthcheck-redis
============================

Focused redis health check for Spatie's Laravel Health package.

v0.1.4(1mo ago)062MITPHPPHP ^8.3CI passing

Since Apr 20Pushed 1mo agoCompare

[ Source](https://github.com/illuma-law/healthcheck-redis)[ Packagist](https://packagist.org/packages/illuma-law/healthcheck-redis)[ Docs](https://github.com/illuma-law/healthcheck-redis)[ GitHub Sponsors](https://github.com/illuma-law)[ RSS](/packages/illuma-law-healthcheck-redis/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (16)Versions (6)Used By (0)

Healthcheck redis for Laravel
=============================

[](#healthcheck-redis-for-laravel)

[![Tests](https://github.com/illuma-law/healthcheck-redis/actions/workflows/run-tests.yml/badge.svg)](https://github.com/illuma-law/healthcheck-redis/actions)[![Packagist License](https://camo.githubusercontent.com/e60623f508586f049d48cfb8396ee411b0c9bc3be174381a1893c37462a3c1e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d626c7565)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/819c5b7507083819181da6e8ccba852a25220d9963562fa18706bf24ec839cc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696c6c756d612d6c61772f6865616c7468636865636b2d72656469733f6c6162656c3d56657273696f6e)](https://packagist.org/packages/illuma-law/healthcheck-redis)

A focused redis health check for Spatie's [Laravel Health](https://spatie.be/docs/laravel-health/v1/introduction) package.

This package provides direct health checks to verify that the PHP `redis` extension is installed and that your Redis instance is operating within safe memory limits.

Features
--------

[](#features)

- **Extension Detection:** Checks if the PHP `redis` extension is enabled and reports the specific version installed.
- **Memory Monitoring:** Verifies that your Redis instance is not exceeding its `maxmemory` limit (or a custom threshold).
- **Configurable Strictness:** Choose whether a missing extension or high memory usage should return a Warning or a Failure status.

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

[](#installation)

Require this package with composer:

```
composer require illuma-law/healthcheck-redis
```

Usage &amp; Integration
-----------------------

[](#usage--integration)

Register the checks inside your application's health service provider (e.g. `AppServiceProvider` or a dedicated `HealthServiceProvider`), alongside your other Spatie Laravel Health checks:

### 1. Redis Extension Check

[](#1-redis-extension-check)

```
use IllumaLaw\HealthCheckRedis\RedisExtensionCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    RedisExtensionCheck::new()->required(true),
]);
```

### 2. Redis Memory Check

[](#2-redis-memory-check)

```
use IllumaLaw\HealthCheckRedis\RedisMemoryCheck;
use Spatie\Health\Facades\Health;

Health::checks([
    RedisMemoryCheck::new()
        ->connection('default')
        ->thresholdPercent(90),
]);
```

### Expected Result States

[](#expected-result-states)

- **Ok:** The extension is installed and Redis memory usage is within safe limits.
- **Warning:** The extension is missing (if not required) or Redis memory usage is above the warning threshold.
- **Failed:** The extension is missing (if required) or Redis has reached its `maxmemory` limit.

Testing
-------

[](#testing)

Run the test suite:

```
composer test
```

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~2 days

Total

5

Last Release

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2affac64f2726a640084b203503518ca01f582536d60a0a299b614486ed95aaa?d=identicon)[miguelenes](/maintainers/miguelenes)

---

Top Contributors

[![miguelenes](https://avatars.githubusercontent.com/u/1568086?v=4)](https://github.com/miguelenes "miguelenes (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelhealthredisilluma-law

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/illuma-law-healthcheck-redis/health.svg)

```
[![Health](https://phpackages.com/badges/illuma-law-healthcheck-redis/health.svg)](https://phpackages.com/packages/illuma-law-healthcheck-redis)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[clickbar/laravel-magellan

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

436834.4k1](/packages/clickbar-laravel-magellan)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

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

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

24740.3k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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