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

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

gases/pager
===========

A library to split results into multiple pages

08PHP

Since Sep 6Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

GSPager
=======

[](#gspager)

[!\[Software License\](https://img.shields.io/badge/license-MIT- brightgreen.svg?style=flat-square)](LICENSE.md)A library to split results into multiple pages

Install
-------

[](#install)

Via Composer

```
$ composer require Gavrysh/pager
```

Usage
-----

[](#usage)

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

```
$obj = new GSPager\FilePager(
new GSPager\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 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\](php-xdg-base-dir/blob/master/LICENSE) for more information.

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

Maturity40

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/be7620f6b79f3305592c39085dbea4adcd5d710501dfcf25d421348cf19e3330?d=identicon)[G@SeS](/maintainers/G@SeS)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[serafim/ffi-sdl

SDL FFI bindings for the PHP language

324.6k3](/packages/serafim-ffi-sdl)

PHPackages © 2026

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