PHPackages                             tillkruss/laravel-phpredis - 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. tillkruss/laravel-phpredis

AbandonedArchivedLibrary[Caching](/categories/caching)

tillkruss/laravel-phpredis
==========================

A Redis driver for Laravel and Lumen that works with PhpRedis, the PECL Redis Extension.

v1.1.0(9y ago)2258.9k6MITPHPPHP &gt;=5.5.9

Since Feb 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/tillkruss/laravel-phpredis)[ Packagist](https://packagist.org/packages/tillkruss/laravel-phpredis)[ RSS](/packages/tillkruss-laravel-phpredis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

PhpRedis driver for Laravel &amp; Lumen
=======================================

[](#phpredis-driver-for-laravel--lumen)

[![Build Status](https://camo.githubusercontent.com/1ad4b513799c5bacf1066ece24afd0f2f0c08d69ab6075bf8ee2667e04110d06/68747470733a2f2f7472617669732d63692e6f72672f74696c6c6b727573732f6c61726176656c2d70687072656469732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tillkruss/laravel-phpredis)[![Latest Stable Version](https://camo.githubusercontent.com/4d5fd29a6290ef097a4743dbf02f81d7e140487efd03eef9dfdce333f4e7f875/68747470733a2f2f706f7365722e707567782e6f72672f74696c6c6b727573732f6c61726176656c2d70687072656469732f762f737461626c65)](https://packagist.org/packages/tillkruss/laravel-phpredis)[![License](https://camo.githubusercontent.com/d8e85ab3cc7defff29d97e4c142c06cfb99889e96e437f5cf15e2240f0b213fc/68747470733a2f2f706f7365722e707567782e6f72672f74696c6c6b727573732f6c61726176656c2d70687072656469732f6c6963656e7365)](https://packagist.org/packages/tillkruss/laravel-phpredis)

This package provides a drop-in replacement for Laravel’s and Lumen’s `RedisServiceProvider`, that adds compatibility for PhpRedis, the PECL Redis Extension.

Using PhpRedis instead of Predis with Laravel’s default `RedisServiceProvider` will result in false-positives across the framework, because PhpRedis returns `false` instead of `null` if a key does not exist.

Requirements
------------

[](#requirements)

- PHP 5.5.9+
- Laravel 5.1+
- Lumen 5.1+
- PhpRedis 2.2.8+

Laravel Installation
--------------------

[](#laravel-installation)

First, install this package via Composer:

```
composer require tillkruss/laravel-phpredis

```

Then open your `app` configuration file and remove (or comment-out) the default Redis service provider from your `providers` list:

```
// Illuminate\Redis\RedisServiceProvider::class,
```

Next, register the new service provider by adding it to the end of your `providers` list:

```
TillKruss\LaravelPhpRedis\RedisServiceProvider::class,
```

Finally, make sure you already renamed or removed the alias for Redis in your `aliases` list.

Lumen Installation
------------------

[](#lumen-installation)

First, install this package via Composer:

```
composer require tillkruss/laravel-phpredis

```

If you haven’t already, install `illuminate/redis` as well:

```
composer require illuminate/redis

```

Next, register the Redis service provider in your `bootstrap/app.php` file.

```
$app->register(TillKruss\LaravelPhpRedis\RedisServiceProvider::class);
```

Finally, if you have not called `$app->withEloquent()` in your `bootstrap/app.php` file, then you need to call `$app->configure('database');` to ensure the Redis database configuration is properly loaded.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~56 days

Total

4

Last Release

3557d ago

### Community

Maintainers

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

---

Top Contributors

[![tillkruss](https://avatars.githubusercontent.com/u/665029?v=4)](https://github.com/tillkruss "tillkruss (20 commits)")[![Swanty](https://avatars.githubusercontent.com/u/7765070?v=4)](https://github.com/Swanty "Swanty (1 commits)")

---

Tags

laravelredisphpredis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tillkruss-laravel-phpredis/health.svg)

```
[![Health](https://phpackages.com/badges/tillkruss-laravel-phpredis/health.svg)](https://phpackages.com/packages/tillkruss-laravel-phpredis)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[longman/laravel-lodash

Add more functional to Laravel

9792.9k](/packages/longman-laravel-lodash)[vetruvet/laravel-phpredis

Use phpredis as the redis connection in Laravel

43123.7k](/packages/vetruvet-laravel-phpredis)[encore/redis-manager

Redis manager for laravel

25243.1k](/packages/encore-redis-manager)[moox/jobs

Manage Job Queues, Failed Jobs and Batches in Filament.

6421.8k](/packages/moox-jobs)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1413.9k](/packages/byerikas-cache-tags)

PHPackages © 2026

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