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

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

fafmio/pagination
=================

A basic pagination service.

v1.0.1(3y ago)08MITPHPPHP &gt;=7.4

Since Jan 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/FafMio/pagination)[ Packagist](https://packagist.org/packages/fafmio/pagination)[ Docs](http://github.com/fafmio/pagination)[ RSS](/packages/fafmio-pagination/feed)WikiDiscussions main Synced today

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

Pagination
==========

[](#pagination)

[![Total Downloads](https://camo.githubusercontent.com/386c3c670f4d145d7c1232dbedc6b2887b9f124ab4c881fe839a12c94af18963/68747470733a2f2f706f7365722e707567782e6f72672f6661666d696f2f706167696e6174696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/fafmio/pagination)[![Latest Stable Version](https://camo.githubusercontent.com/e1b4c1f1b39b924f17308c942c8de5b4fcbac34eb7912ae8d75f649fb5d9c8e7/68747470733a2f2f706f7365722e707567782e6f72672f6661666d696f2f706167696e6174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/fafmio/pagination)[![Latest Unstable Version](https://camo.githubusercontent.com/6d8a6feabce3e4e3d94c7467a9c9bf20c3657368b24668622f275a04deb28155/68747470733a2f2f706f7365722e707567782e6f72672f6661666d696f2f706167696e6174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/fafmio/pagination)[![License](https://camo.githubusercontent.com/69ce8d787baeb4cc1cfaf9bf105aeb30081a92b6c45d175761b21f057a9bb674/68747470733a2f2f706f7365722e707567782e6f72672f6661666d696f2f706167696e6174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/fafmio/pagination)

Installation
------------

[](#installation)

Install with composer:

```
composer require "fafmio/pagination:~1.0"
```

Basic usage
-----------

[](#basic-usage)

Here's a quick example using the defaults:

```
use FafMio\Pagination;

$totalItems = 1000;
$itemsPerPage = 50;
$currentPage = 8;
$urlPattern = '/foo/page/(:num)'; // or '/foo?page=(:num)'

$paginator = new Pagination($totalItems, $itemsPerPage, $currentPage, $urlPattern);
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

1255d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

v1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17750811?v=4)[Sylvain Roux](/maintainers/FafMio)[@FafMio](https://github.com/FafMio)

---

Top Contributors

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

---

Tags

pagepagerpaginatorpaginationpages

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/fafmio-pagination/health.svg)](https://phpackages.com/packages/fafmio-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.

4091.3M22](/packages/jasongrimes-paginator)[beberlei/porpaginas

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

163643.5k13](/packages/beberlei-porpaginas)[ashleydawson/simple-pagination

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

19162.6k2](/packages/ashleydawson-simple-pagination)[ttskch/paginator-bundle

The most thin, simple and customizable paginator bundle for Symfony

1115.2k](/packages/ttskch-paginator-bundle)[2createstudio/carbon-pagination

A handy WordPress library for building all kinds of paginations.

152.4k](/packages/2createstudio-carbon-pagination)[sivka/paginator

bootstrap-4 fork of jasongrimes/php-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.

141.4k](/packages/sivka-paginator)

PHPackages © 2026

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