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

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

omerkamcili/pagination
======================

Calculate pages with take, skip and total parameters and then create pagination links

v1.2.0(6y ago)0247PHPPHP ^7.1.3CI failing

Since Dec 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/omerkamcili/pagination)[ Packagist](https://packagist.org/packages/omerkamcili/pagination)[ RSS](/packages/omerkamcili-pagination/feed)WikiDiscussions master Synced yesterday

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

OmerKamcili\\Pagination
=======================

[](#omerkamcilipagination)

Calculate and create urls from take, skip and total parameters for pagination.

### Install

[](#install)

Install package with composer

```
composer install omerkamcili\pagination

```

### Example

[](#example)

```
$data = [
    'total' => 359,
    'skip'  => 20,
    'url'   => 'http://www.yourapp.com/currentPage',
];

$pagination = new \OmerKamcili\Pagination\Pagination($data);

print_r($pagination);

foreach($pagination->pages as $page => $url){
    echo "Page $page: $url";
}

```

### Parameters

[](#parameters)

All parameters public, you can access from outside and you can set with construct method

ParameterTypeDescriptiontakeintegerSet take parameterskipintegerSet skip parametertotalintegerSet total parameterurlstringSet url for use about paginationcurrentPageintegerWill be calculated autototalPagesintegerWill be calculated autotakeLabelstringYou can change take name ( for example limit )skipLabelstringYou can change skip name ( for example offset )nextPagestringWill be created auto ( not implemented )previousPagestringWill be created auto ( not implemented )firstPagestringWill be created auto ( not implemented )lastPagestringWill be created auto ( not implemented )pagesarrayWill be created pages, you can iterate the created pageswalkPageNumberintegerNumber of pagination item, ( default 3 meanings 11 - 12 - 13 - \[14\] - 15 - 16 - 17 )### Contributing

[](#contributing)

You can create merge request or you can create issue card, there is no rules about this.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~13 days

Total

3

Last Release

2413d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11783296?v=4)[Bilyan Asenov](/maintainers/omerkamcili)[@omerkamcili](https://github.com/omerkamcili)

---

Top Contributors

[![omerkamcili](https://avatars.githubusercontent.com/u/11783296?v=4)](https://github.com/omerkamcili "omerkamcili (6 commits)")[![smart-over](https://avatars.githubusercontent.com/u/46518053?v=4)](https://github.com/smart-over "smart-over (1 commits)")

---

Tags

composer-packagepaginationpagination-componentspagination-generatorpagination-libraryphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1841.1M18](/packages/consistence-consistence)[h4kuna/ares

Provides information about subjects by their identification number from the ARES database (in Czech Republic).

50426.5k3](/packages/h4kuna-ares)[umpirsky/transliterator

Transliterator is a PHP library for text transliteration.

63204.2k1](/packages/umpirsky-transliterator)[symfony/polyfill-php71

Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions

26919.8k13](/packages/symfony-polyfill-php71)[tonysm/globalid-laravel

Identify app models with a URI. Inspired by the globalid gem.

45135.1k3](/packages/tonysm-globalid-laravel)[inpsyde/composer-assets-compiler

Composer plugin that installs and compile frontend dependencies for installed Composer packages based on configuration.

25302.4k1](/packages/inpsyde-composer-assets-compiler)

PHPackages © 2026

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