PHPackages                             maeharin/pagee - 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. maeharin/pagee

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

maeharin/pagee
==============

stand alone php paginator

125PHP

Since Jul 3Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Pagee(ver 0.x)
==============

[](#pageever-0x)

independent PHP pagination library

what?
-----

[](#what)

- independent from any other library, works stand alone
- generate limit and offset for sql
- generate links for pagination

usage
-----

[](#usage)

first: set

```
// requested url: http://www.hoge.com/users.php?page=3
// total_count: the results of 'select count(*) from users;'
$pagee = Pagee::create(array(
    'base_url'       => 'http://www.hoge.com/users.php',
    'total_count'    => 100,
    'requested_page' => 3
));
```

second: find this page's records

```
$sql = "
    SELECT
        *
    FROM
        users
    LIMIT
        {$pagee->limit()}
    OFFSET
        {$pagee->offset()}
";
```

throd: generate pagination links

```
$pagee->links();
```

customize setting
-----------------

[](#customize-setting)

```
$pagee = Pagee::create(array(
            'base_url'       => 'http://www.hoge.com/answers.php',
            'total_count'    => 100,
            'requested_page' => 3
        ))
        ->append_params(array(
            'project_id' => 100,
            'user_type' => 'hoge'
        ));

$pagee->links();
```

install
-------

[](#install)

download composer

```
$ curl -sS https://getcomposer.org/installer | php

```

composer.json

```
{
    "require": {
        "maeharin/pagee": "dev-master"
    }
}

```

install

```
$ php composer.phar install

```

todo
----

[](#todo)

- i18n

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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/78744597025bae98619fa69e29f32d9b3e4ef62e5f8fd68f58713e2825022f3a?d=identicon)[maeharin](/maintainers/maeharin)

---

Top Contributors

[![maeharin](https://avatars.githubusercontent.com/u/1523308?v=4)](https://github.com/maeharin "maeharin (16 commits)")

### Embed Badge

![Health badge](/badges/maeharin-pagee/health.svg)

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

###  Alternatives

[jetsung/pusher

A message push extension.

168.6k](/packages/jetsung-pusher)

PHPackages © 2026

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