PHPackages                             mp3000mp/redis-client - 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. mp3000mp/redis-client

ActiveLibrary[Caching](/categories/caching)

mp3000mp/redis-client
=====================

Simple class easy to use that wraps Redis extension without dependencies.

0.1(5y ago)063Apache-2.0PHPPHP &gt;=7.2

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mp3000mp/RedisClient)[ Packagist](https://packagist.org/packages/mp3000mp/redis-client)[ Docs](https://github.com/mp3000mp/RedisClient)[ RSS](/packages/mp3000mp-redis-client/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

RedisClient
===========

[](#redisclient)

Simple class easy to use that wraps Redis extension without dependencies.

[![Packagist Version](https://camo.githubusercontent.com/4819cd29922c387452cd4aa5e2daa56cc3ef754be40db1247826daf3b7456fe7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d70333030306d702f72656469732d636c69656e743f636f6c6f723d253233303237336233)](https://camo.githubusercontent.com/4819cd29922c387452cd4aa5e2daa56cc3ef754be40db1247826daf3b7456fe7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d70333030306d702f72656469732d636c69656e743f636f6c6f723d253233303237336233)[![Build Status](https://camo.githubusercontent.com/206fbca13d151e5601a63a8d10a893a9c56864df8c0f00404669342af77197a5/68747470733a2f2f7472617669732d63692e6f72672f6d70333030306d702f5265646973436c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mp3000mp/RedisClient)[![Coverage Status](https://camo.githubusercontent.com/ab761f4b91f8a4cf7d654fd55b06a343875bc52b9b561527c5060410690cbca7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d70333030306d702f5265646973436c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mp3000mp/RedisClient?branch=master)[![License](https://camo.githubusercontent.com/a549a7a30bacba7bfceebdc207a8e86c3f2c02995a2527640dca30048fd2b64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e737667)](https://opensource.org/licenses/Apache-2.0)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Use with Symfony](#symfony)

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

[](#installation)

```
composer require mp3000mp/redis-client
```

Usage
-----

[](#usage)

```
// This will try to connect and throw a RedisClientException if connection failed
$client = new RedisClient($host, $port, $auth);

// simple get set system
$client->set('key', 'value');
$val = $client->get('key');

// this value will be converted into json text into redis
$client->set('key_array', ['test' => 'test']);
// returns '{"test":"test"}'
$client->get('key_array');
// returns ['test' => 'test']
$client->get('key_array', true);

// this key will live 120 seconds
$client->set('key', 'test', 120);
$client->delete('key');

// close connection
$client->close();
```

Use with Symfony
----------------

[](#use-with-symfony)

Add this to services.yml

```
    Mp3000mp\RedisClient\RedisClient:
        arguments: ['%env(REDIS_HOST)%', '%env(REDIS_PORT)%', '%env(REDIS_AUTH)%']
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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 ~18 days

Total

3

Last Release

2022d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.1

0.0.2PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9430a38cb45ba40b584e071dcfaa29919f77b136d74da7f13fd5aace950d9ad3?d=identicon)[mp3000mp](/maintainers/mp3000mp)

---

Top Contributors

[![mp3000mp](https://avatars.githubusercontent.com/u/54006012?v=4)](https://github.com/mp3000mp "mp3000mp (25 commits)")

---

Tags

redis

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mp3000mp-redis-client/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[enqueue/redis

Message Queue Redis Transport

405.5M25](/packages/enqueue-redis)[kdyby/redis

Redis storage for Nette Framework

491.6M2](/packages/kdyby-redis)

PHPackages © 2026

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