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

ActiveLibrary[Caching](/categories/caching)

kingnet/laravel-phpredis
========================

Use phpredis as the redis connection in Laravel

1.2.0.x-dev(10y ago)23521[2 issues](https://github.com/jinguoxing/laravel-phpredis/issues)MITPHP

Since Jun 27Pushed 10y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-phpredis
================

[](#laravel-phpredis)

laravel 5.1
===========

[](#laravel-51)

PhpRedis The phpredis extension provides an API for communicating with the Redis key-value store. It is released under the PHP License, version 3.01. This code has been developed and maintained by Owlient from November 2009 to March 2011.

Requirements
============

[](#requirements)

PHP 5.4+
Laravel 5.x

Installation
============

[](#installation)

```

"require": {
    "kingnet/laravel-phpredis":"dev-master"
}
```

Add the PhpRedisServiceProvider to config/app.php (comment out built-in RedisServiceProvider):

```
// Illuminate\Redis\RedisServiceProvider::class,
//phpredis provider
    KingNet\PhpRedis\PhpRedisServiceProvider::class,
```

The default Facade alias conflicts with the Redis class provided by PhpRedis. To fix this, rename the alias in config/app.php:

```
'PhpRedis'  => KingNet\PhpRedis\Facede::class,
```

Finally run composer update to update and install everything.

Configuration
=============

[](#configuration)

Just use php artisan vendor:publish and a phpredis.php file will be created in your config directory.

Usage
=====

[](#usage)

```
use PhpRedis;

class PhpredisController extends Controller
{

    public function test()
    {

        PhpRedis::set('myname','kingnet');
        dd(PhpRedis::get('myname'));

    }

}
```

License
=======

[](#license)

This is free software distributed under the terms of the MIT license.

Contribution guidelines
=======================

[](#contribution-guidelines)

Please report any issue you find in the issues page.
Pull requests are welcome.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5c87daff1a0cab35070de7c5f5a3783373bb9b571347e77e91ea29ef519c4d?d=identicon)[jinguoxing](/maintainers/jinguoxing)

---

Top Contributors

[![jinguoxing](https://avatars.githubusercontent.com/u/2147893?v=4)](https://github.com/jinguoxing "jinguoxing (26 commits)")

---

Tags

laravelredisphpredis

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/kingnet-laravel-phpredis/health.svg)](https://phpackages.com/packages/kingnet-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)
