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

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

rundiz/pagination
=================

The highly customizable PHP pagination class.

3.1.1(1y ago)25411MITPHPPHP &gt;=5.3.0

Since Apr 27Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/Rundiz/pagination)[ Packagist](https://packagist.org/packages/rundiz/pagination)[ RSS](/packages/rundiz-pagination/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

Pagination Component
====================

[](#pagination-component)

PHP Pagination.
The highly customizable PHP pagination class. Tested on PHP 8.5.

[![Latest Stable Version](https://camo.githubusercontent.com/ae28ce5c399c68bdbc7f0579aa56362c85f0643adebdadf7b2097534ccb3fb41/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f706167696e6174696f6e2f762f737461626c65)](https://packagist.org/packages/rundiz/pagination)[![License](https://camo.githubusercontent.com/86666458c25e252b9f0a03aa57c1e0f3f5e96ded15f9238a713111c10254d30f/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f706167696e6174696f6e2f6c6963656e7365)](https://packagist.org/packages/rundiz/pagination)[![Total Downloads](https://camo.githubusercontent.com/54e900b5afd44e7b92ebb464536f2df0a54f5183f749b53a17c6baf01170f1c4/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f706167696e6174696f6e2f646f776e6c6f616473)](https://packagist.org/packages/rundiz/pagination)

Example:

```
// You don't need to include or require file if you install via Composer.
require_once '../Rundiz/Pagination/Pagination.php';

$total_records = 1000;
$start = (isset($_GET['start']) ? intval($_GET['start']) : 0);
if ($start < 0) {
    $start = 0;
}
$limit = 10;

$Pagination = new \Rundiz\Pagination\Pagination();
// Set options to the pagination class.
$Pagination->base_url = 'http://localhost/your-project/page.php?start=%PAGENUMBER%';// *This property must be set.
$Pagination->total_records = $total_records;// *This property must be set.
$Pagination->page_number_value = $start;// *This property must be set.
echo $Pagination->createLinks();
```

More example is in tests folder.

Pagination parts description
============================

[](#pagination-parts-description)

[![Pagination](tests/via-http/pagination-description.jpg "Pagination description")](tests/via-http/pagination-description.jpg)

- "before unavailable" items number can be set via "unavailable\_before" property. Example: `$Pagination->unavailable_before = 1;`
- "unavailable" text can be set via "unavailable\_text" property. Example: `$Pagination->unavailable_text = '..';`
- "adjacent pages" can be set the number via "number\_adjacent\_pages" property. Example: `$Pagination->number_adjacent_pages = 3;`
- "after unavailable" items number can be set via "unavailable\_after" property. Example: `$Pagination->unavailable_after = 2;`

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance49

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community10

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

Total

3

Last Release

612d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1568262?v=4)[vee w,](/maintainers/ve3)[@ve3](https://github.com/ve3)

---

Top Contributors

[![ve3](https://avatars.githubusercontent.com/u/1568262?v=4)](https://github.com/ve3 "ve3 (17 commits)")

---

Tags

pagerpaginationpagerpaginationpagingpaginatedynamic-paginationslice pageshighly customizable pagination

### Embed Badge

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

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

###  Alternatives

[jasongrimes/paginator

A lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

4071.3M22](/packages/jasongrimes-paginator)[aplus/pagination

Aplus Framework Pagination Library

2171.6M3](/packages/aplus-pagination)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

178740.8k11](/packages/kop-yii2-scroll-pager)[stefangabos/zebra_pagination

A generic, Twitter Bootstrap compatible, PHP pagination library that automatically generates navigation links

11924.0k](/packages/stefangabos-zebra-pagination)[beberlei/porpaginas

Library that generically solves several pagination issues with DAO/repository abstractions.

164653.9k15](/packages/beberlei-porpaginas)[ashleydawson/simple-pagination

Simple, lightweight and universal service that implements pagination on collections of things

18163.2k2](/packages/ashleydawson-simple-pagination)

PHPackages © 2026

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