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

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

amstaffix/pagination
====================

Simple pagination

1.1.3(10y ago)43293.9k↓51.5%76MITPHPPHP &gt;=5.3CI failing

Since Feb 25Pushed 6y ago4 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (6)

Pagination
==========

[](#pagination)

The simple pagination

[![Downloads](https://camo.githubusercontent.com/367d5d746c86347e0ac70bb5a8c29578401f288c55d3c86dc757bc908cef6274/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d737461666669782f706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amstaffix/pagination)[![License](https://camo.githubusercontent.com/3ae33d777df817a84e9caa2b83ebedf47561862bdb81eaabcd2e719d6ab6710c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616d737461666669782f706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/MIT)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.3

Usage
-----

[](#usage)

```
use Kilte\Pagination\Pagination;
$pagination = new Pagination($totalItems, $currentPage, $itemsPerPage, $neighbours);
$offset = $pagination->offset();
$limit = $pagination->limit();
$listing = $someInstance->listing($offset, $limit);
$pages = $pagination->build(); // Contains associative array with a numbers of a pages
// For example:
/*
    array(
        1 => 'first',
        5 => 'less',
        6 => 'previous', // This interval
        7 => 'previous', // is defined
        8 => 'previous', // by
        9 => 'previous', // $neighbours argument
        10 => 'current', // Current page
        11 => 'next',
        12 => 'next',
        13 => 'next',
        14 => 'next',
        15 => 'more',
        20 => 'last'
    )
*/
```

Note: Tags (like *first*, *current*, ...) are defined as constants in the Pagination class (`TAG_FIRST`, `TAG_CURRENT`, ...).

Tests
-----

[](#tests)

```
$ composer install
$ vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

[Contribution process](CONTRIBUTING.md)

CHANGELOG
---------

[](#changelog)

[Changelog](CHANGELOG.md)

LICENSE
=======

[](#license)

The MIT License (MIT)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

3811d ago

### Community

Maintainers

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

---

Top Contributors

[![AmsTaFFix](https://avatars.githubusercontent.com/u/3091599?v=4)](https://github.com/AmsTaFFix "AmsTaFFix (2 commits)")[![miniche](https://avatars.githubusercontent.com/u/1638158?v=4)](https://github.com/miniche "miniche (2 commits)")[![alexandr-san4ez](https://avatars.githubusercontent.com/u/20110612?v=4)](https://github.com/alexandr-san4ez "alexandr-san4ez (1 commits)")

---

Tags

paginationpagination

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wenzhixin/bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11.8k287.3k1](/packages/wenzhixin-bootstrap-table)[babdev/pagerfanta-bundle

Bundle integrating Pagerfanta with Symfony

21019.3M93](/packages/babdev-pagerfanta-bundle)[webcreate/jquery-ias

Infinite Ajax Scroll: A jQuery plugin that turns your server-side pagination into an infinite scrolling one using AJAX

903736.3k3](/packages/webcreate-jquery-ias)[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)[aplus/pagination

Aplus Framework Pagination Library

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

Infinite AJAX scrolling for Yii2 ListView widget

181732.8k10](/packages/kop-yii2-scroll-pager)

PHPackages © 2026

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