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.3

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 today

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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

2314d 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)
```

PHPackages © 2026

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