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

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

kharanenka/oc-pagination
========================

Get pagination elements for OctoberCMS

1.0.2(9y ago)238.6k↓27.8%1GPL-3.0PHPPHP &gt;=5.6

Since Nov 22Pushed 9y ago1 watchersCompare

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

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

Class Pagination
================

[](#class-pagination)

You can get pagination elements with "Pagination" class. See [php-pagination](https://github.com/kharanenka/php-pagination) package. You can copy the lang file from example oc-pagination/src/Kharanenka/lang/en/lang.php

\#Installation Require this package in your `composer.json` and update composer.

```
"kharanenka/oc-pagination": "1.0.*"
```

\#Component properties

```
public function defineProperties()
{
    $arProperties = [
        //Component property array
    ];

    $arProperties = array_merge($arProperties, Pagination::getProperties('plugin_name'));
    return $arProperties;
}
```

Usage
=====

[](#usage)

```
//$arSettings = $this->properties
$arPagination = Pagination::get($iCurrentPage, $iTotalCount, $arSettings);

```

\#Result

```
[
    [
        'name' => 'First',
        'value' => 1,
        'class' => 'pagination-first-button',
        'code' => 'first',
    ],
    ...
    [
        'name' => '3',
        'value' => 3,
        'class' => 'pagination-i _act',
        'code' => null,
    ],
    ...
    [
        'name' => 'Last',
        'value' => 10,
        'class' => 'pagination-last-button',
        'code' => 'last',
    ]
]
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~9 days

Total

3

Last Release

3446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f72dfe2a14224cf1e368ddefcd7886bbe7be751a21fe77227175ba21ebfab823?d=identicon)[Andrey Kharanenka](/maintainers/Andrey%20Kharanenka)

---

Top Contributors

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

---

Tags

phppagination

### Embed Badge

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

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

###  Alternatives

[stefangabos/zebra_pagination

A generic, Twitter Bootstrap compatible, PHP pagination library that automatically generates navigation links

11122.9k](/packages/stefangabos-zebra-pagination)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[yidas/pagination

PHP Paginator with Pager Widget (pure PHP, CI, Yii, Laravel support)

2516.4k](/packages/yidas-pagination)

PHPackages © 2026

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