PHPackages                             burgov/predis-wrapper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. burgov/predis-wrapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

burgov/predis-wrapper
=====================

A set of helper classes around Predis

1.1.0(12y ago)0451[7 issues](https://github.com/Burgov/PredisWrapper/issues)MITPHPPHP &gt;=5.3.3

Since Nov 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Burgov/PredisWrapper)[ Packagist](https://packagist.org/packages/burgov/predis-wrapper)[ RSS](/packages/burgov-predis-wrapper/feed)WikiDiscussions master Synced 2w ago

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

PredisWrapper
=============

[](#prediswrapper)

[![Build Status](https://camo.githubusercontent.com/a05bba4c19dc266bb4ceb5a76373bc4ea89b022048de7bacfe1443a258cd2432/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f427572676f762f507265646973577261707065722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Burgov/PredisWrapper)[![Coverage Status](https://camo.githubusercontent.com/5ae0598c633ee10c975b1023aece7b3c030af052bc6b764b94c3456dcd6c9a8f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f427572676f762f507265646973577261707065722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/Burgov/PredisWrapper?branch=master)

A set of helper classes around the Predis library

```
$client = new Burgov\PredisWrapper\Client(new Predis\Client(/* ... */));

$string = new Scalar($client, 'string_key');
$set = new Set($client, 'set_key');
$sortedSet = new SortedSet($client, 'sorted_set_key');
$hash = new Hash($client, 'hash_key');
$list = new PList($client, 'list_key'); // unfortunately, "list" is a reserved word in PHP
```

Or use the factory:

```
$factory = new TypeFactory($client);
// when you're sure "some_key" exists. This will return an instance of the appropriate class
$factory->instantiate('some_key');
// when you're expecting "some_set_key" to be a set or non existent. Will throw exception if it is something else.
$factory->instantiateSet('some_set_key');
```

`$factory` will always try to return the same instance of a type based on the key

See usage examples in the integration tests:

- [Scalar](tests/Burgov/PredisWrapper/Integration/ScalarTest.php)
- [Hash](tests/Burgov/PredisWrapper/Integration/HashTest.php)
- [List](tests/Burgov/PredisWrapper/Integration/PListTest.php)
- [Set](tests/Burgov/PredisWrapper/Integration/SetTest.php)
- [SortedSet](tests/Burgov/PredisWrapper/Integration/SortedSetTest.php)

Here is a list of all the redis commands that are wrapped (so far): [Wrapped commands](doc/wrapped_commands.md)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/417674?v=4)[Bart van den Burg](/maintainers/Burgov)[@Burgov](https://github.com/Burgov)

---

Top Contributors

[![Burgov](https://avatars.githubusercontent.com/u/417674?v=4)](https://github.com/Burgov "Burgov (30 commits)")

### Embed Badge

![Health badge](/badges/burgov-predis-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/burgov-predis-wrapper/health.svg)](https://phpackages.com/packages/burgov-predis-wrapper)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[splitsoftware/split-sdk-php

Split SDK for PHP

161.3M2](/packages/splitsoftware-split-sdk-php)

PHPackages © 2026

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