PHPackages                             greezen/redis-pagination - 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. greezen/redis-pagination

ActiveLibrary[Caching](/categories/caching)

greezen/redis-pagination
========================

paginate with redis sorted set

v1.0.0(3y ago)07MITPHPPHP &gt;=5.3.0

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/greezen/redis-pagination)[ Packagist](https://packagist.org/packages/greezen/redis-pagination)[ RSS](/packages/greezen-redis-pagination/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/069666d7017a65ccc4a079afd29518214a096c543ea169d13714675d00c82644/687474703a2f2f706f7365722e707567782e6f72672f677265657a656e2f72656469732d706167696e6174696f6e2f76)](https://packagist.org/packages/greezen/redis-pagination)[![Total Downloads](https://camo.githubusercontent.com/8e8110292502165a728f2e2252c416f7b961cfdedb473c62b56a0d76499b74c6/687474703a2f2f706f7365722e707567782e6f72672f677265657a656e2f72656469732d706167696e6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/greezen/redis-pagination)[![Latest Unstable Version](https://camo.githubusercontent.com/a687730459dcccb95c7455ae8c51b60a845048a6dc8c8b522eaf306c31c218a3/687474703a2f2f706f7365722e707567782e6f72672f677265657a656e2f72656469732d706167696e6174696f6e2f762f756e737461626c65)](https://packagist.org/packages/greezen/redis-pagination)[![License](https://camo.githubusercontent.com/e80b0f9720f7bea80dd88d095fdbe84b2c69ce5699331d90c3309c664d2b15a0/687474703a2f2f706f7365722e707567782e6f72672f677265657a656e2f72656469732d706167696e6174696f6e2f6c6963656e7365)](https://packagist.org/packages/greezen/redis-pagination)[![PHP Version Require](https://camo.githubusercontent.com/69b1636c64d5ae5a232688c07c6a723f3b9c263fa31405c9444a12a760379db2/687474703a2f2f706f7365722e707567782e6f72672f677265657a656e2f72656469732d706167696e6174696f6e2f726571756972652f706870)](https://packagist.org/packages/greezen/redis-pagination)

Install
-------

[](#install)

```
composer require greezen/redis-pagination
```

Examples
--------

[](#examples)

### Add

[](#add)

```
$items = array(array('score' => 1, 'value' => 'test'));
$redisPagination = new greezen\RedisPagination($redis);
$redisPagination->setKey('list')->insert($items, 60);
```

### Get

[](#get)

```
$redisPagination = new greezen\RedisPagination($redis);
$redisPagination->setKey('list')->paginate(1, 20);

$redisPagination->setKey('list')->offset(0)->limit(20)->order('desc')->get()

$redisPagination->setKey('list')->first();
$redisPagination->setKey('list')->last();
```

### Remove

[](#remove)

```
$redisPagination = new greezen\RedisPagination($redis);
$redisPagination->setKey('list')->delete();
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

1353d ago

### Community

Maintainers

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

---

Top Contributors

[![greezen](https://avatars.githubusercontent.com/u/6023468?v=4)](https://github.com/greezen "greezen (3 commits)")

---

Tags

redispaginate

### Embed Badge

![Health badge](/badges/greezen-redis-pagination/health.svg)

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

###  Alternatives

[predis/predis

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

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

A Redis bundle for Symfony

1.0k40.9M74](/packages/snc-redis-bundle)[clue/redis-protocol

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

5216.6M14](/packages/clue-redis-protocol)[cache/redis-adapter

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

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

Message Queue Redis Transport

445.7M31](/packages/enqueue-redis)[kdyby/redis

Redis storage for Nette Framework

501.7M2](/packages/kdyby-redis)

PHPackages © 2026

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