2017 © Pedro PelĂĄez
 

library laravel-phpredis

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

image

tillkruss/laravel-phpredis

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

  • Monday, August 22, 2016
  • by tillkruss
  • Repository
  • 3 Watchers
  • 21 Stars
  • 13,251 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

PhpRedis driver for Laravel & Lumen

Build Status Latest Stable Version License, (*1)

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

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., (*3)

Requirements

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

Laravel Installation

First, install this package via Composer:, (*4)

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:, (*5)

// Illuminate\Redis\RedisServiceProvider::class,

Next, register the new service provider by adding it to the end of your providers list:, (*6)

TillKruss\LaravelPhpRedis\RedisServiceProvider::class,

Finally, make sure you already renamed or removed the alias for Redis in your aliases list., (*7)

Lumen Installation

First, install this package via Composer:, (*8)

composer require tillkruss/laravel-phpredis

If you haven’t already, install illuminate/redis as well:, (*9)

composer require illuminate/redis

Next, register the Redis service provider in your bootstrap/app.php file., (*10)

$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., (*11)

License

This package is open-sourced software licensed under the MIT license., (*12)

The Versions

22/08 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

laravel redis phpredis

14/08 2016

v1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

laravel redis phpredis

01/03 2016

1.0.2

1.0.2.0

A Redis driver for Laravel 5 that adds compatibility for PHPRedis, the PCEL Redis Extension.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

laravel redis phpredis

28/02 2016

1.0.1

1.0.1.0

A Redis driver for Laravel 5.2+ that works with PHPRedis.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

laravel redis phpredis

28/02 2016

1.0.0

1.0.0.0

A Redis driver for Laravel 5.2+ that works with PHPRedis.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

laravel redis phpredis