PHPackages                             webjjel/laravel-read-write-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. [Database &amp; ORM](/categories/database)
4. /
5. webjjel/laravel-read-write-redis

ActiveLibrary[Database &amp; ORM](/categories/database)

webjjel/laravel-read-write-redis
================================

Using Read/Write Redis connection for Laravel

0.1.0(6y ago)214MITPHPPHP &gt;=7.1.3

Since Oct 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/webjjel/laravel-read-write-redis)[ Packagist](https://packagist.org/packages/webjjel/laravel-read-write-redis)[ Docs](https://github.com/webjjel/laravel-read-write-redis)[ RSS](/packages/webjjel-laravel-read-write-redis/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Read/Write Connection for Redis
---------------------------------------

[](#laravel-readwrite-connection-for-redis)

[![Packagist License](https://camo.githubusercontent.com/65d66ec53b4b7d0ae0cca390e9133b2a18ef623bc42189e971c468ed066a2ab6/68747470733a2f2f706f7365722e707567782e6f72672f7765626a6a656c2f6c61726176656c2d726561642d77726974652d72656469732f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Latest Stable Version](https://camo.githubusercontent.com/4f73e18ca3819949107b03bc6c60ae5ff0e91329ab76604e0b3e2eb2789d6dbd/68747470733a2f2f706f7365722e707567782e6f72672f7765626a6a656c2f6c61726176656c2d726561642d77726974652d72656469732f76657273696f6e2e706e67)](https://packagist.org/packages/webjjel/laravel-read-write-redis)[![Total Downloads](https://camo.githubusercontent.com/f3799019c0cb8279904d548f8e5831f2de3dd222e74dda54787476dd8c4029eb/68747470733a2f2f706f7365722e707567782e6f72672f7765626a6a656c2f6c61726176656c2d726561642d77726974652d72656469732f642f746f74616c2e706e67)](https://packagist.org/packages/webjjel/laravel-read-write-redis)

The `webjjel/laravel-read-write-redis` package provides read/write connection for redis.

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

[](#installation)

PHP 7.1 and Laravel 5.8 or higher are required.

You can install the package via composer:

```
composer require webjjel/laravel-read-write-redis
```

The package will automatically register itself.

Usage
-----

[](#usage)

You have to set the read/write connection in `config/database.php`

```
'redis' => [
    'write' => [
        'host'     => env('REDIS_WRITE_HOST', '127.0.0.1'),
        'password' => env('REDIS_WRITE_PASSWORD', null),
        'port'     => env('REDIS_WRITE_PORT', 6379),
        'database' => 0,
    ],

    'read' => [
        'host'     => env('REDIS_READ_HOST', '127.0.0.1'),
        'password' => env('REDIS_READ_PASSWORD', null),
        'port'     => env('REDIS_READ_PORT', 6379),
        'database' => 0,
    ],
],
```

and then set the redis connection in `config/cache.php`

```
'stores' => [
    'redis-read-write' => [
        'driver' => 'redis-read-write',
        // If you want to change connection name, edit below configuration.
        // 'connection' => [
        //     'write' => 'write',
        //     'read'  => 'read',
        // ],
    ],
]
```

If you want to use read/write redis cache by default, You can change environment in `.env`

```
CACHE_DRIVER=redis-read-write
```

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

2400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5257296c9ef33b725693aee0ad3382591e1e181d4916c4c9921e0e54ab3f5f05?d=identicon)[webjjel](/maintainers/webjjel)

---

Top Contributors

[![webjjel](https://avatars.githubusercontent.com/u/351112?v=4)](https://github.com/webjjel "webjjel (11 commits)")

---

Tags

laravelwebjjellaravel-read-write-redis

### Embed Badge

![Health badge](/badges/webjjel-laravel-read-write-redis/health.svg)

```
[![Health](https://phpackages.com/badges/webjjel-laravel-read-write-redis/health.svg)](https://phpackages.com/packages/webjjel-laravel-read-write-redis)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)

PHPackages © 2026

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