PHPackages                             heropoo/pagination - 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. heropoo/pagination

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

heropoo/pagination
==================

A pagination component

v0.2.1(6y ago)0991MITPHP

Since Sep 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/heropoo/pagination)[ Packagist](https://packagist.org/packages/heropoo/pagination)[ RSS](/packages/heropoo-pagination/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (5)Used By (1)

pagination
==========

[](#pagination)

Pagination

使用方法
----

[](#使用方法)

install via composer

```
composer require heropoo/pagination

```

示例
--

[](#示例)

[![avatar](./20180612140806.png)](./20180612140806.png)

```
$user_total = 100;
$page_size = 10;
$page = new Page($user_total, $page_size);
//获取分页 offset 参数
$limit = $page->getLimit();   //等于 $page_size
$offset = $page->getOffset();
//输出的html
$html = $page->getHtml();
echo $html;
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~168 days

Total

4

Last Release

2330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b0aebfada1ff3d61e26a62d2aa27f8c62453f404222097e049acc90b5644116?d=identicon)[heropoo](/maintainers/heropoo)

---

Top Contributors

[![heropoo](https://avatars.githubusercontent.com/u/9514731?v=4)](https://github.com/heropoo "heropoo (10 commits)")

---

Tags

paginationpagination-components

### Embed Badge

![Health badge](/badges/heropoo-pagination/health.svg)

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

###  Alternatives

[icetalker/filament-picker

A Regular Picker for Filament Form

1054.8k](/packages/icetalker-filament-picker)

PHPackages © 2026

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