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 13y ago1 watchersCompare

[ Source](https://github.com/maeharin/pagee)[ Packagist](https://packagist.org/packages/maeharin/pagee)[ RSS](/packages/maeharin-pagee/feed)WikiDiscussions master Synced 4w 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 18% 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://avatars.githubusercontent.com/u/1523308?v=4)[Hidenori Maehara](/maintainers/maeharin)[@maeharin](https://github.com/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

[solarissmoke/disable-comments-mu

This is the must-use version of the Disable Comments WordPress plugin. Copy the contents of this directory into your mu-plugins directory in order to disable comments on the entire site/network, without any configuration. You should delete all existing comments from the WordPress database before activating this plugin. If you want to be able to configure the plugin's behaviour, then use the normal version.

6569.4k](/packages/solarissmoke-disable-comments-mu)[dstuecken/php7ify

php7ify is a project that brings new php7 classes and exceptions to php 5.x.

11158.4k1](/packages/dstuecken-php7ify)[thiktak/filament-nested-builder-form

Plugin for FilamentPHP - Nested Builder Form Component

208.9k1](/packages/thiktak-filament-nested-builder-form)

PHPackages © 2026

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