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

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

medisolbv/pagination
====================

A simple package to allow easy generation of pagination links

1.0.0(1y ago)1194↓50%MITPHPPHP ^8.2

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/medisolbv/pagination)[ Packagist](https://packagist.org/packages/medisolbv/pagination)[ RSS](/packages/medisolbv-pagination/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Medisol Pagination
==================

[](#medisol-pagination)

This is a simple package to generate the correct pagination links.

Usage
-----

[](#usage)

A new `Paginator` object can be instantiated with the `Paginator::create` method. This method takes two parameters;

1. `int $currentPage`
2. `int $totalPages`.

### Generating links

[](#generating-links)

After instantiating a new `Paginator` object, the `generate` method can be used to generate the required links.

### Getting the links

[](#getting-the-links)

After generating links, you can use these links by calling the `Paginator::getLinks` method. When returning the result in JSON format, the links will be serialized to JSON.

### Available link methods

[](#available-link-methods)

- `PaginationLink::getPage`: returns the link's page number
- `PaginationLink::isActive`: returns whether the current page is this page
- `PaginationLink::isDisabled`: returns whether this page is disabled (for example, the ellipsis between different link ranges).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

618d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/917d34baaaf2b29ecc1c27e736deabbda84171b65f0cf62bedaca8149df090d6?d=identicon)[medisolbv](/maintainers/medisolbv)

---

Top Contributors

[![alexvd95](https://avatars.githubusercontent.com/u/160742091?v=4)](https://github.com/alexvd95 "alexvd95 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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