PHPackages                             igorsimdyanov/pager - 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. igorsimdyanov/pager

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

igorsimdyanov/pager
===================

A library to split results into multiple pages

v2.0.0(3y ago)21101MITPHPPHP &gt;=8.0.0

Since Jan 2Pushed 3y ago2 watchersCompare

[ Source](https://github.com/igorsimdyanov/pager)[ Packagist](https://packagist.org/packages/igorsimdyanov/pager)[ Docs](https://github.com/igorsimdyanov/pager)[ RSS](/packages/igorsimdyanov-pager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

ISPager
=======

[](#ispager)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A library to split results into multiple pages

Install
-------

[](#install)

Via Composer

```
$ composer require igorsimdyanov/pager
```

Usage
-----

[](#usage)

```
$obj = new ISPager\DirPager(
    new ISPager\PagesList(),
    'photos',
    3,
    2
);
echo '';
print_r($obj->getItems());
echo '';
echo "$obj";
```

```
$obj = new ISPager\FilePager(
    new ISPager\ItemsRange(),
    'largetextfile.txt');
echo '';
print_r($obj->getItems());
echo '';
echo "$obj";
```

```
try {
    $pdo = new PDO(
        'pgsql:host=localhost;dbname=test',
        'root'
    );
    $obj = new ISPager\PdoPager(
        new ISPager\ItemsRange(),
        $pdo,
        'table_name');
    echo '';
    print_r($obj->getItems());
    echo '';
    echo "$obj";
}
catch (PDOException $e) {
  echo "Can't connect to database";
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/dnoegel/php-xdg-base-dir/blob/master/LICENSE) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

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

Total

3

Last Release

1450d ago

Major Versions

v1.0.1 → v2.0.02022-07-11

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v2.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2901012?v=4)[Игорь Симдянов](/maintainers/igorsimdyanov)[@igorsimdyanov](https://github.com/igorsimdyanov)

---

Top Contributors

[![igorsimdyanov](https://avatars.githubusercontent.com/u/2901012?v=4)](https://github.com/igorsimdyanov "igorsimdyanov (7 commits)")

---

Tags

pagerpaginatorpagination

### Embed Badge

![Health badge](/badges/igorsimdyanov-pager/health.svg)

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

###  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.

3741.3M21](/packages/jasongrimes-paginator)[ashleydawson/simple-pagination

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

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

The most thin, simple and customizable paginator bundle for Symfony

1114.3k](/packages/ttskch-paginator-bundle)[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)
