<commit_before># PHPRedis driver for Laravel 5.2+

[![Build Status](https://travis-ci.org/tillkruss/laravel-phpredis.svg?branch=master)](https://travis-ci.org/tillkruss/laravel-phpredis)
[![Latest Stable Version](https://poser.pugx.org/tillkruss/larvel-phpredis/v/stable)](https://packagist.org/packages/tillkruss/larvel-phpredis)
[![License](https://poser.pugx.org/tillkruss/larvel-phpredis/license)](https://packagist.org/packages/tillkruss/larvel-phpredis)

This package provides a drop-in replacement for Laravel's `RedisServiceProvider`, that adds compatibility for PHPRedis, the PCEL Redis Extension.

PHPRedis does not support sharding, using the `cluster` option in your configuration will lead to an exception.

## Requirements

- PHP 5.5.9+
- Laravel 5.2+
- PHPRedis

## Installation

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,
```

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

<commit_msg>Minor `README.md` changes<commit_after># PHPRedis driver for Laravel 5

[![Build Status](https://travis-ci.org/tillkruss/laravel-phpredis.svg?branch=master)](https://travis-ci.org/tillkruss/laravel-phpredis)
[![Latest Stable Version](https://poser.pugx.org/tillkruss/larvel-phpredis/v/stable)](https://packagist.org/packages/tillkruss/larvel-phpredis)
[![License](https://poser.pugx.org/tillkruss/larvel-phpredis/license)](https://packagist.org/packages/tillkruss/larvel-phpredis)

This package provides a drop-in replacement for Laravel's `RedisServiceProvider`, that adds compatibility for PHPRedis, the PCEL Redis Extension.

Using PHPRedis with Laravel's default `RedisServiceProvider` will result in issues wherever Redis is being used by Laravel, because PHPRedis returns `false` instead of `null` if a key does not exist.

*Note: PHPRedis does not support sharding, using the `cluster` option in your configuration will lead to an exception.*

## Requirements

- PHP 5.5.9
- Laravel 5.2
- PHPRedis

## Installation

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,
```

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


{'fraction_non_alphanumeric': 0.11393728222996516, 'fraction_numerical': 0.004529616724738676, 'mean_word_length': 5.408482142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3449935', 'n_tokens_mistral': 959, 'n_tokens_neox': 932, 'n_words': 261}