PHPackages                             marko/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. [Framework](/categories/framework)
4. /
5. marko/pagination

ActiveMarko-module[Framework](/categories/framework)

marko/pagination
================

Pagination interfaces and implementations for Marko Framework

0.7.0(3mo ago)052↓80%1MITPHPPHP ^8.5

Since Mar 25Pushed 4w agoCompare

[ Source](https://github.com/marko-php/marko-pagination)[ Packagist](https://packagist.org/packages/marko/pagination)[ RSS](/packages/marko-pagination/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (16)Versions (18)Used By (1)

marko/pagination
================

[](#markopagination)

Offset and cursor pagination with API-ready serialization--paginate any result set without coupling to your data layer.

Installation
------------

[](#installation)

```
composer require marko/pagination
```

Quick Example
-------------

[](#quick-example)

```
use Marko\Pagination\OffsetPaginator;

$paginator = new OffsetPaginator(
    items: $items,
    total: 150,
    perPage: 15,
    currentPage: 3,
);

$paginator->hasMorePages(); // true
$paginator->lastPage();     // 10
$paginator->toArray();      // ['items' => [...], 'meta' => [...], 'links' => [...]]
```

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/pagination](https://marko.build/docs/packages/pagination/)

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance89

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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 ~0 days

Total

16

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (7 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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