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 2w 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 9% 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

[vimeo/ablincoln

PHP library for designing online experiments

154302.9k](/packages/vimeo-ablincoln)[iamcal/lib_autolink

Adds anchors to urls in a text

621.3M3](/packages/iamcal-lib-autolink)[kreyu/data-table-bundle

Streamlines creation process of the data tables

116113.8k](/packages/kreyu-data-table-bundle)[pocketmine/bedrock-block-upgrade-schema

Schemas describing how to upgrade saved block data in older Minecraft: Bedrock Edition world saves

24392.0k16](/packages/pocketmine-bedrock-block-upgrade-schema)[sylius/taxation

Flexible taxation system for PHP ecommerce applications.

11424.7k12](/packages/sylius-taxation)[acsiomatic/device-detector-bundle

Symfony Bundle for https://github.com/matomo-org/device-detector

12208.8k](/packages/acsiomatic-device-detector-bundle)

PHPackages © 2026

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