PHPackages                             icewind/predis-php-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. icewind/predis-php-redis

AbandonedArchivedLibrary[Caching](/categories/caching)

icewind/predis-php-redis
========================

Compatibility layer between predis and php-redis

v1.0.0(8y ago)015MITPHPPHP &gt;=5.6.0

Since Jul 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/icewind1991/predis-php-redis)[ Packagist](https://packagist.org/packages/icewind/predis-php-redis)[ Docs](https://github.com/icewind1991/predis-php-redis)[ RSS](/packages/icewind-predis-php-redis/feed)WikiDiscussions master Synced 1mo ago

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

predis-php-redis
================

[](#predis-php-redis)

[![Build Status](https://camo.githubusercontent.com/8c05c967b576ed6b681cf48357b1c61449630001edf6d5b26682eed38fde7d86/68747470733a2f2f7472617669732d63692e6f72672f69636577696e64313939312f7072656469732d7068702d72656469732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/icewind1991/predis-php-redis)

Compatibility layer between [`predis`](https://github.com/nrk/predis) and [`php-redis`](https://github.com/phpredis/phpredis)

Usage
-----

[](#usage)

```
// connect using php-redis as normal
$redis = new \Redis();
$redis->connect('127.0.0.1', 6379);

// create a predis instance using the existing php-redis instance
$predis = \PredisPHPRedis\Wrapper::wrap($redis);

// use predis as normal

$predis->set('foo', 'bar');
```

Why
---

[](#why)

This project is not intended for new projects that want to use `predis` (just use plain `predis`, possibly with `phpiredis`), but instead for projects that are already using `php-redis` that want to integrate code relying on `predis` or the other way around.

Compatibility
-------------

[](#compatibility)

Beside the items listed below, this adapter is tested against the full predis test suite and thus should be fully compatible with "normal" predis behaviour. Any behaviour that is not covered by the predis test suite might behave unexpected though.

Known issues and limitations
----------------------------

[](#known-issues-and-limitations)

- When unsubscribing from multiple channels, only the first channel name is returned correctly.
- Predis builtin clustering support is untested and probably not working, instead it's recommended to handle the clustering in php-redis

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3207d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ea4722a1296fa93edb98eae91349659927af69f7711cf35693be2b4c28ea618?d=identicon)[icewind1991](/maintainers/icewind1991)

---

Top Contributors

[![icewind1991](https://avatars.githubusercontent.com/u/1283854?v=4)](https://github.com/icewind1991 "icewind1991 (9 commits)")

---

Tags

redispredis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/icewind-predis-php-redis/health.svg)

```
[![Health](https://phpackages.com/badges/icewind-predis-php-redis/health.svg)](https://phpackages.com/packages/icewind-predis-php-redis)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[predis/service-provider

Predis service provider for the Silex microframework

68546.6k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

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

272.6M13](/packages/cache-predis-adapter)[contributte/redis

Redis client integration into Nette framework

181.6M2](/packages/contributte-redis)[maykonn/codeigniter-predis

The CodeIgniter Redis package

129.3k](/packages/maykonn-codeigniter-predis)

PHPackages © 2026

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