PHPackages                             sfneal/redis-helpers - 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. sfneal/redis-helpers

ActiveLibrary[Caching](/categories/caching)

sfneal/redis-helpers
====================

Redis helper functions for improved Redis cache transactions with PHP applications.

3.0.0(2y ago)0145.2k[4 PRs](https://github.com/sfneal/redis-helpers/pulls)3MITPHPPHP ^8.0|^8.1|^8.2|^8.3CI passing

Since Aug 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/sfneal/redis-helpers)[ Packagist](https://packagist.org/packages/sfneal/redis-helpers)[ Docs](https://github.com/sfneal/redis-helpers)[ RSS](/packages/sfneal-redis-helpers/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (6)Versions (37)Used By (3)

Redis Helpers
=============

[](#redis-helpers)

[![Packagist PHP support](https://camo.githubusercontent.com/5c2ad0b19d7e623a7041a1810f8704413beacbcc4cd55ed69c80ba583ff5a9ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73666e65616c2f72656469732d68656c70657273)](https://packagist.org/packages/sfneal/redis-helpers)[![Latest Version on Packagist](https://camo.githubusercontent.com/440687036d0e86784b66bbfd2f54adbf45e417c01730cf0ea9c1d8f49208d43e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666e65616c2f72656469732d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/redis-helpers)[![Build Status](https://camo.githubusercontent.com/bae6d3b5a141e41675c100a66269963489f9ea2328b046346e872f7ced9d6de2/68747470733a2f2f7472617669732d63692e636f6d2f73666e65616c2f72656469732d68656c706572732e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/sfneal/redis-helpers)[![StyleCI](https://camo.githubusercontent.com/0975db86aecf4cff39d279d15b0728b993691cda30dd08c4c9c64b6dfbff61d8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3238383438383330312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/288488301?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/990be95c8ba72abf6005aa14b67d22c84211f3baeee572d4c888b2de2ca85af5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73666e65616c2f72656469732d68656c706572732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sfneal/redis-helpers/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/6053e619288fe7691717d0603aa470ecd6b8dca92dcd2cf6d5b703387e1ba4fe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666e65616c2f72656469732d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/redis-helpers)

Redis helper functions for improved Redis cache transactions with PHP applications

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

[](#installation)

You can install the package via composer:

```
composer require sfneal/redis-helpers
```

In order to autoload to the helper functions add the following path to the autoload.files section in your composer.json.

```
"autoload": {
    "files": [
        "vendor/sfneal/redis-helpers/src/redis.php"
    ]
},
```

To modify the redis-helpers 'prefix' &amp; 'ttl' setting publish the ServiceProvider &amp; modify the config.

```
php artisan vendor:publish --provider="Sfneal\Helpers\Redis\Providers\RedisHelpersServiceProvider"
```

Usage
-----

[](#usage)

```
# Add a key value pair to the cache
RedisCache::set('pastrnak', 88);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Neal](https://github.com/sfneal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance49

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.7% 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 ~43 days

Recently: every ~239 days

Total

32

Last Release

808d ago

Major Versions

0.8.1 → 1.0.02021-01-26

1.4.1 → 2.0.02021-09-01

2.0.2 → 3.0.02024-04-16

PHP version history (5 changes)0.1.0PHP ^7.1

0.4.0PHP ^7.0

0.5.0PHP &gt;=7.0

0.7.0PHP &gt;=7.1

3.0.0PHP ^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

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

---

Top Contributors

[![sfneal](https://avatars.githubusercontent.com/u/23200215?v=4)](https://github.com/sfneal "sfneal (226 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

sfnealredis-helpers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sfneal-redis-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/sfneal-redis-helpers/health.svg)](https://phpackages.com/packages/sfneal-redis-helpers)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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