PHPackages                             mingalevme/predis - 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. [Database &amp; ORM](/categories/database)
4. /
5. mingalevme/predis

ActiveLibrary[Database &amp; ORM](/categories/database)

mingalevme/predis
=================

Extended version of predis/predis — added support for pseudo-unique lists (based on ordered set)

07PHP

Since Sep 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mingalevme/predis)[ Packagist](https://packagist.org/packages/mingalevme/predis)[ RSS](/packages/mingalevme-predis/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

mingalevme/predis
=================

[](#mingalevmepredis)

Extended version of predis/predis — added support for pseudo-unique lists (based on ordered set)
------------------------------------------------------------------------------------------------

[](#extended-version-of-predispredis--added-support-for-pseudo-unique-lists-based-on-ordered-set)

Available methods:
------------------

[](#available-methods)

- **zrpush($key, $value1, $value2 = null, .., $valueN = null)**: Insert all the specified values at the tail of the list stored at key.
- **zlpush($key, $value1, $value2 = null, .., $valueN = null)**: Insert all the specified values at the head of the list stored at key.
- **zlpop($key)**: Removes and returns the first element of the list stored at key.
- **zrpop($key)**: Removes and returns the last element of the list stored at key.

Example
-------

[](#example)

```
$client = new \Mingalevme\Predis\Client();

$client->del('queue');

$client->zrpush('queue', '1');
$client->zrpush('queue', '2');
$client->zrpush('queue', '3');

echo "\n\nStep 1\n";
print_r($client->zrange('queue', 0, -1));

$client->zrpush('queue', '1');
$client->zrpush('queue', '2');
$client->zrpush('queue', '3');

echo "\n\nStep 2\n";
print_r($client->zrange('queue', 0, -1));

$client->zlpush('queue', '-1');
$client->zlpush('queue', '-2');
$client->zlpush('queue', '-3');

echo "\n\nStep 3\n";
print_r($client->zrange('queue', 0, -1));

echo "\n\nStep 4\n";
$el = $client->zrpop('queue');
print_r($el);

echo "\n\nStep 5\n";
$el = $client->zlpop('queue');
print_r($el);

echo "\n\nStep 6\n";
while ($el = $client->zlpop('queue')) {
    echo "\nvalue: {$el}\n";
    echo "list: ";
    print_r($client->zrange('queue', 0, -1));
}
```

### Output

[](#output)

```
Step 1
Array
(
    [0] => 1
    [1] => 2
    [2] => 3
)

Step 2
Array
(
    [0] => 1
    [1] => 2
    [2] => 3
)

Step 3
Array
(
    [0] => -3
    [1] => -2
    [2] => -1
    [3] => 1
    [4] => 2
    [5] => 3
)

Step 4
3

Step 5
-3

Step 6

value: -2
list: Array
(
    [0] => -1
    [1] => 1
    [2] => 2
)

value: -1
list: Array
(
    [0] => 1
    [1] => 2
)

value: 1
list: Array
(
    [0] => 2
)

value: 2
list: Array
(
)

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7ec129880f05c65026a684ac899ac5c6a20334d1528f361265e2f526fbbec15?d=identicon)[mingalevme](/maintainers/mingalevme)

---

Top Contributors

[![mingalevme](https://avatars.githubusercontent.com/u/1725784?v=4)](https://github.com/mingalevme "mingalevme (10 commits)")

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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