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

ActiveLibrary

igorkampusano/pager
===================

A library to split results into multiple page

01PHP

Since Jun 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/IgorKampusano/pager)[ Packagist](https://packagist.org/packages/igorkampusano/pager)[ RSS](/packages/igorkampusano-pager/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

IKPager
=======

[](#ikpager)

\[!\[Software License\] ()\] (LICENSE.md)

A library to split results into multiple pages

\##Install

Via Composer

```
$ composer require igorkampusano/pager
```

Usage
-----

[](#usage)

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

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

```
try {
    $pdo = new PDO(
        'mysql:host=localhost;dbname=test',
        'root',
        '',
        [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
    $obj = new IKPager\PdoPager(
        new IKPager\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\] () for more information.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/68bf6b6e2b52b1ff9203e3e5772c630ffc2fbcd3dd74af7361bfc436611f436d?d=identicon)[Ispanets6396](/maintainers/Ispanets6396)

---

Top Contributors

[![IgorKampusano](https://avatars.githubusercontent.com/u/56488719?v=4)](https://github.com/IgorKampusano "IgorKampusano (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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