PHPackages                             phpextra/paginator - 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. phpextra/paginator

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

phpextra/paginator
==================

Pagination for collections in PHP

06.8kPHP

Since Aug 16Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

\#Paginator (PHPExtra\\Paginator)

[![Latest Stable Version](https://camo.githubusercontent.com/f191ec3b5b7bc3e47a0e9560fa5dbfccca294c2d9ca66c7e6d978417ccf4f7b1/68747470733a2f2f706f7365722e707567782e6f72672f70687065787472612f706167696e61746f722f762f737461626c652e737667)](https://packagist.org/packages/phpextra/paginator)[![Total Downloads](https://camo.githubusercontent.com/1cbcad397e94b3b1198a9a901ec8c0015bb25d746ee68fb7bf4665dc5b38fe8f/68747470733a2f2f706f7365722e707567782e6f72672f70687065787472612f706167696e61746f722f646f776e6c6f6164732e737667)](https://packagist.org/packages/phpextra/paginator)[![License](https://camo.githubusercontent.com/dfb3162347f8d2b805eda60ecfcad21697ef6c9e987d92dd6d6ff5dee4027691/68747470733a2f2f706f7365722e707567782e6f72672f70687065787472612f706167696e61746f722f6c6963656e73652e737667)](https://packagist.org/packages/phpextra/paginator)[![Build Status](https://camo.githubusercontent.com/5d891c44d7aa2eea8ed731fbf486191cf9d7392d28b3800ddba6e734627f9063/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f70687065787472612f706167696e61746f722e737667)](https://travis-ci.org/phpextra/paginator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/452993e9755ba151f919c6698ba254e6b188605313f9ec2da56b92433e133f87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687065787472612f706167696e61746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phpextra/paginator/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f92d280ae187e42727fa2544eef510f348b08e048d6f3a1872874a2b671c0c35/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70687065787472612f706167696e61746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/phpextra/paginator/?branch=master)[![GitTip](https://camo.githubusercontent.com/0ec766cd3550cb42f0db394a3dc81c594379aba38bdca4d1b31a56d9baae78c3/687474703a2f2f696d672e736869656c64732e696f2f6769747469702f6a6b6f6275732e737667)](https://www.gittip.com/jkobus)

\##Usage

Paginator is fully compatible with Collection (PHPExtra/Collection). It's task is to split large collections into pages.

```
$page = 2;
$itemsPerPage = 10;
$products = new Collection(...);
$paginator = new Paginator($products, $page, $itemsPerPage);

echo $paginator->getPage(); // returns a collection with size of 10 for current page
echo $paginator->getNextPageNumber(); // returns "3"
echo $paginator->hasNextPage(); // returns bool true or false
```

\##Changelog

```
No release yet

```

\##Contributing

All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the [coding standards](http://symfony.com/doc/2.0/contributing/code/standards.html). If you would like to help take a look at the **list of issues**.

\##Requirements

```
See **composer.json** for a full list of dependencies.

```

\##Authors

```
Jacek Kobus -

```

License information
-------------------

[](#license-information)

```
See the file LICENSE.txt for copying permission.

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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/1527096?v=4)[Jacek](/maintainers/jkobus)[@jkobus](https://github.com/jkobus)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/phpextra-paginator/health.svg)

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

###  Alternatives

[hhxsv5/php-sse

A simple and efficient library implemented HTML5's server-sent events by PHP, is used to real-time push events from server to client, and easier than Websocket, instead of AJAX request.

452178.0k3](/packages/hhxsv5-php-sse)[w8tcha/ckeditor-wordcount-plugin

WordCount Plugin for CKEditor Editor

77470.2k](/packages/w8tcha-ckeditor-wordcount-plugin)[urodoz/truncate-html

Handle truncate action on HTML strings

21294.0k6](/packages/urodoz-truncate-html)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[altis/local-server

Local Server module for Altis

18208.4k2](/packages/altis-local-server)[radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

13272.2k3](/packages/radekdostal-nette-datetimepicker)

PHPackages © 2026

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