PHPackages                             exploitfate/yii2-pager - 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. exploitfate/yii2-pager

ActiveLibrary

exploitfate/yii2-pager
======================

Yii2 smart link pager

1.0.6(9y ago)0157BSDPHPPHP &gt;=5.4.0

Since Oct 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/exploitfate/yii2-pager)[ Packagist](https://packagist.org/packages/exploitfate/yii2-pager)[ Docs](https://github.com/exploitfate/yii2-pager/)[ RSS](/packages/exploitfate-yii2-pager/feed)WikiDiscussions master Synced 2mo ago

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

yii2-pager
==========

[](#yii2-pager)

Yii2 smart pager

Another LinkPager for [Yii2 framework](http://www.yiiframework.com/) pagination.

[![Latest Stable Version](https://camo.githubusercontent.com/64767eb3f42b77701cbca99fd2fed7864b7a35e97b2f80a08020c4f585452a6c/68747470733a2f2f706f7365722e707567782e6f72672f6578706c6f6974666174652f796969322d70616765722f762f737461626c65)](https://packagist.org/packages/exploitfate/yii2-pager)[![Total Downloads](https://camo.githubusercontent.com/216554e9e6366f8508ec6a1bdde77a288a2a9f9a9d7cd49aeda4545d004b5ed9/68747470733a2f2f706f7365722e707567782e6f72672f6578706c6f6974666174652f796969322d70616765722f646f776e6c6f616473)](https://packagist.org/packages/exploitfate/yii2-pager)[![Latest Unstable Version](https://camo.githubusercontent.com/66f9c507440547cf70016cb47d6769e15c791b5a9e3f51c65de74e3fbcb35f02/68747470733a2f2f706f7365722e707567782e6f72672f6578706c6f6974666174652f796969322d70616765722f762f756e737461626c65)](https://packagist.org/packages/exploitfate/yii2-pager)[![License](https://camo.githubusercontent.com/516c7ed3a10ed2c60ca4f9120cf9267e77ea0effa2fd853a634647b7f34e9bad/68747470733a2f2f706f7365722e707567782e6f72672f6578706c6f6974666174652f796969322d70616765722f6c6963656e7365)](https://packagist.org/packages/exploitfate/yii2-pager)

Install
-------

[](#install)

Best way is install via composer

```
composer require "exploitfate/yii2-pager"

```

Usage
-----

[](#usage)

### Page size limit override default (optionally)

[](#page-size-limit-override-default-optionally)

Setup page size limit in (frontend|backend|app)/config/main.php

```
// Override default parameters for \yii\data\Pagination
\Yii::$container->set(
    \yii\data\Pagination::className(),
    [
        'pageSizeLimit' => [1, 1000],
        'defaultPageSize' => 200,
    ]
);
```

### Replace default LinkPager

[](#replace-default-linkpager)

In single GridView or ListView

```
echo \yii\grid\GridView::widget(
    [
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'pager' => [
            'class' => \exploitfate\yii2\LinkPager::className(),
        ],

        // other settings

        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            // other collumns
        ],
    ]
);
```

Also you can replace default LinkPager globally. Setup LinkPager for (GridView|ListView) in (frontend|backend|app)/config/main.php

GridView

```
// Override default parameters for \yii\grid\GridView
\Yii::$container->set(
    \yii\grid\GridView::className(),
    [
        'pager' => [
            'class' => \exploitfate\yii2\LinkPager::className(),
        ],
     ]
);
```

ListView

```
// Override default parameters for \yii\grid\ListView
\Yii::$container->set(
    \yii\grid\ListView::className(),
     [
        'pager' => [
            'class' => \exploitfate\yii2\LinkPager::className(),
        ],
     ]
);
```

### Widget

[](#widget)

```
echo \exploitfate\yii2\LinkPager::widget(
    [
        'pagination' => $dataProvider->getPagination(),
    ]
);
```

License
-------

[](#license)

The MIT License (MIT). See [LICENSE](LICENSE) file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~0 days

Total

4

Last Release

3493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2168183808f4862bdb8829386c6a07803f13fa663e4b59afd1bd830325527760?d=identicon)[exploitfate](/maintainers/exploitfate)

---

Top Contributors

[![exploitfate](https://avatars.githubusercontent.com/u/1311871?v=4)](https://github.com/exploitfate "exploitfate (20 commits)")

---

Tags

pageryii2 smart link pageryii2 link pageryii2 pagersmart link

### Embed Badge

![Health badge](/badges/exploitfate-yii2-pager/health.svg)

```
[![Health](https://phpackages.com/badges/exploitfate-yii2-pager/health.svg)](https://phpackages.com/packages/exploitfate-yii2-pager)
```

###  Alternatives

[knplabs/knp-paginator-bundle

Paginator bundle for Symfony to automate pagination and simplify sorting and other features

1.8k42.8M314](/packages/knplabs-knp-paginator-bundle)[knplabs/knp-components

Knplabs component library

77343.6M46](/packages/knplabs-knp-components)[jasongrimes/paginator

A lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

4101.3M21](/packages/jasongrimes-paginator)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[aplus/pagination

Aplus Framework Pagination Library

2091.6M3](/packages/aplus-pagination)[zenstruck/collection

Helpers for iterating/paginating/filtering collections (with Doctrine ORM/DBAL implementations and batch processing utilities).

16617.0k1](/packages/zenstruck-collection)

PHPackages © 2026

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