PHPackages                             yiicod/yii2-pagesizepager - 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. yiicod/yii2-pagesizepager

ActiveYii2-extension

yiicod/yii2-pagesizepager
=========================

Perpager extension for Yii 2 framework

1.0.1(8y ago)4852MITPHP

Since Aug 25Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (3)Used By (0)

Yii widget provides saving grid page size
=========================================

[](#yii-widget-provides-saving-grid-page-size)

Provides functionality to add page size pager for any grid and save chosen value in file storage. This is liyunfang\\yii2-widget-linkpager fork.

[![Latest Stable Version](https://camo.githubusercontent.com/2e6f8422ef13190c3e557cb8160c5927108a4f6ac44a30c8c8341f677df3720f/68747470733a2f2f706f7365722e707567782e6f72672f796969636f642f796969322d7061676573697a6570616765722f762f737461626c65)](https://packagist.org/packages/yiicod/yii2-pagesizepager) [![Total Downloads](https://camo.githubusercontent.com/daadfbcc7bcb5c9717f1d5fe7ef9f1d6bcf18df399d4ff3a874b265adf37b168/68747470733a2f2f706f7365722e707567782e6f72672f796969636f642f796969322d7061676573697a6570616765722f646f776e6c6f616473)](https://packagist.org/packages/yiicod/yii2-pagesizepager) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/80cca14e8965c69e9f87e181116274a143c821d7cc65833d6fe13e674d844315/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969636f642f796969322d7061676573697a6570616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiicod/yii2-pagesizepager/?branch=master)[![Code Climate](https://camo.githubusercontent.com/430a4a758d1d8a56a175acf4b083e951518be6842a3a2eb96b5d14a0ffd9b68d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f796969636f642f796969322d7061676573697a6570616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/yiicod/yii2-pagesizepager)

#### Usage

[](#usage)

You can choose exists provider:

- FileProvider
- MongoProvider (You should have )
- Or you can write your self provider and configute di container

```
'container' => [
    'singletons' => [
        \yiicod\pagesizepager\providers\ProviderInterface::class => [
            'class' => \yiicod\pagesizepager\providers\MongoProvider::class
        ]
    ],
],
```

Add for any grid

```
echo \yii\grid\GridView::widget([
    'id' => 'uniqueGridId',
    'dataProvider' => $dataProvider,
    'filterSelector' => yiicod\perpager\widgets\PageSizePager::getFilterSelector($dataProvider),
    'pager' => [
        'class' => yiicod\perpager\widgets\PageSizePager::class,
        'gridIdentifier' => 'uniqueGridId',
    ]
]);
```

Then add in data provider pagination section (for chosen grid)

```
$dataProvider = new ActiveDataProvider([
    'query' => $query,
    'pagination' =>  [
        'pageSize' => \Yii::$container->get(\yiicod\pagesizepager\providers\ProviderInterface::class)->getPageSize('uniqueGridId'),
    ],
]);
```

Note: 'uniqueGridId' must be the same in all places to correct save grid page size

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3005d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7934283ca98b7f31bb5bf13119a8495cad80ac9097125a48792f47caddb588b9?d=identicon)[lexxorlov](/maintainers/lexxorlov)

---

Top Contributors

[![lexxorlov](https://avatars.githubusercontent.com/u/7910574?v=4)](https://github.com/lexxorlov "lexxorlov (11 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yiicod-yii2-pagesizepager/health.svg)

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

PHPackages © 2026

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