PHPackages                             vemcogroup/laravel-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. vemcogroup/laravel-redis

ActiveLibrary[Caching](/categories/caching)

vemcogroup/laravel-redis
========================

Enhancements to redis driver, such as enabling a serializer and/or compression

0.1.1(5y ago)211.9k1[1 PRs](https://github.com/vemcogroup/laravel-redis/pulls)MITPHP

Since Jul 31Pushed 4y ago1 watchersCompare

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

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

Laravel Redis
=============

[](#laravel-redis)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c043d08c6d977112273700d2167c046804cc020b9b4576a255624da2b59b1acf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76656d636f67726f75702f6c61726176656c2d72656469732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vemcogroup/laravel-redis)[![Total Downloads](https://camo.githubusercontent.com/215c31fdd878b9f6f42e670a6d0557817c78a05f7216670133fa6f046204c91d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76656d636f67726f75702f6c61726176656c2d72656469732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vemcogroup/laravel-redis)[![tests](https://github.com/vemcogroup/laravel-redis/workflows/tests/badge.svg)](https://github.com/vemcogroup/laravel-redis/workflows/tests/badge.svg)

Description
-----------

[](#description)

Enhancements to redis driver, such as enabling a serializer and/or compression

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

[](#installation)

You can install the package via composer:

```
composer require vemcogroup/laravel-redis
```

Remember to have redis installed with serializer and compression.
Answer yes to serializer and compression.

```
pecl upgrade -f redis
```

If you are missing igbinary

```
pecl install igbinary
```

If you are missing libzstd

```
brew install zstd
```

Usage
-----

[](#usage)

Start by selection the new driver `vredis` in you `.env` file:

```
REDIS_CLIENT=vredis
```

*Compression*

To use compression you have to set the type in `database.php` for your redis connection:

```
'default' => [
    'url' => env('REDIS_URL'),
    'host' => env('REDIS_HOST', '127.0.0.1'),
    'password' => env('REDIS_PASSWORD', null),
    'port' => env('REDIS_PORT', '6379'),
    'database' => env('REDIS_DB', '0'),
    'options' => [
        'compression' => Redis::COMPRESSION_NONE,
    ],
],
```

You can use any of the Redis compressions available from you installation:
`Redis::COMPRESSION_NONE`, `Redis::COMPRESSION_ZSTD`, `Redis::COMPRESSION_LZ4`

*Serializer*

To use serialization you have to set the type in `database.php` for your redis connection:

```
'default' => [
    'url' => env('REDIS_URL'),
    'host' => env('REDIS_HOST', '127.0.0.1'),
    'password' => env('REDIS_PASSWORD', null),
    'port' => env('REDIS_PORT', '6379'),
    'database' => env('REDIS_DB', '0'),
    'options' => [
        'serializer' => Redis::SERIALIZER_NONE,
    ],
],
```

You can use any of the Redis serializers available from you installation:
`Redis::SERIALIZER_NONE`, `Redis::SERIALIZER_PHP`, `Redis::SERIALIZER_IGBINARY`, `Redis::SERIALIZER_MSGPACK`, `Redis::SERIALIZER_JSON`

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Every ~42 days

Total

2

Last Release

2019d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38252305?v=4)[Vemco Group A/S](/maintainers/vemcogroup)[@vemcogroup](https://github.com/vemcogroup)

---

Top Contributors

[![danijelk](https://avatars.githubusercontent.com/u/580753?v=4)](https://github.com/danijelk "danijelk (3 commits)")

---

Tags

laravelredisphpredisvemcogroup

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vemcogroup-laravel-redis/health.svg)

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

###  Alternatives

[vetruvet/laravel-phpredis

Use phpredis as the redis connection in Laravel

45122.8k](/packages/vetruvet-laravel-phpredis)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103826.2k](/packages/monospice-laravel-redis-sentinel-drivers)[longman/laravel-lodash

Add more functional to Laravel

9792.3k](/packages/longman-laravel-lodash)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

35642.4k](/packages/namoshek-laravel-redis-sentinel)[ginnerpeace/laravel-redis-lock

Simple redis distributed locks for Laravel.

16112.7k](/packages/ginnerpeace-laravel-redis-lock)[yangusik/laravel-balanced-queue

Laravel queue management with load balancing between partitions (user groups)

692.6k](/packages/yangusik-laravel-balanced-queue)

PHPackages © 2026

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