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

AbandonedArchivedLibrary

ruvents/paginator
=================

Ruwork Paginator

0.1.2(8y ago)05.0k1MITPHPPHP ^7.1

Since Nov 11Pushed 8y ago3 watchersCompare

[ Source](https://github.com/vudaltsov-legacy/paginator)[ Packagist](https://packagist.org/packages/ruvents/paginator)[ RSS](/packages/ruvents-paginator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Ruwork Paginator
================

[](#ruwork-paginator)

Description
-----------

[](#description)

This library provides a convenient way to paginate any data structure.

Some definitions:

- A `section` is a set of pages, rendered together.
- `Proximity` is a number of pages, displayed before and after the current page.

For example, for 10 pages with proximity 2 and current page 5 paginator will have 3 sections with the following page numbers: `[1], [3, 4, 5, 6, 7], [10]`.

When the current page is close to one of the edges sections get merged.

Controller code example
-----------------------

[](#controller-code-example)

```
