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

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

lehatyapachkin/pager
====================

A library to split results into multiple pages

06PHP

Since Nov 9Pushed 8y agoCompare

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

READMEChangelogDependenciesVersions (1)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 lehatyapachkin/pager
```

Usage
-----

[](#usage)

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

```
$obj = new LTPager\FilePager(
  new LTPager\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 LTPager\PdoPager(
    new LTPager\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.

pager
=====

[](#pager)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6979d19b8e894013ec0f45bddcb8b95f02a243e134402b2fae8317856684a667?d=identicon)[lehatyapachkin](/maintainers/lehatyapachkin)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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