PHPackages                             liyunfang/yii2-widget-linkpager - 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. liyunfang/yii2-widget-linkpager

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

liyunfang/yii2-widget-linkpager
===============================

yii2 Widget for LinkPager

1.0.2(10y ago)4734.2k—0%28[1 PRs](https://github.com/pgyf/yii2-widget-linkpager/pulls)4MITPHP

Since Sep 7Pushed 8y ago9 watchersCompare

[ Source](https://github.com/pgyf/yii2-widget-linkpager)[ Packagist](https://packagist.org/packages/liyunfang/yii2-widget-linkpager)[ Docs](https://github.com/liyunfang/yii2-widget-linkpager)[ RSS](/packages/liyunfang-yii2-widget-linkpager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (4)

yii2-widget-linkpager
=====================

[](#yii2-widget-linkpager)

LinkPager widgets for Yii Framework 2.0
=======================================

[](#linkpager-widgets-for-yii-framework-20)

Increase the pageSize of the page drop-down box [![Effect picture 1](https://github.com/liyunfang/wr/raw/master/images/yii2-widget-linkpager-1.png "Effect picture 1")](https://github.com/liyunfang/wr/blob/master/images/yii2-widget-linkpager-1.png)
[![Effect picture 2](https://github.com/liyunfang/wr/raw/master/images/yii2-widget-linkpager-2.png "Effect picture 2")](https://github.com/liyunfang/wr/blob/master/images/yii2-widget-linkpager-2.png)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
 composer require --prefer-dist liyunfang/yii2-widget-linkpager

```

or add

```
"liyunfang/yii2-widget-linkpager": "*"

```

to the require section of your `composer.json` file.

Requirements
------------

[](#requirements)

This extension require twitter-bootstrap

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

GridView options

```
    'filterSelector' => "select[name='".$dataProvider->getPagination()->pageSizeParam."'],input[name='".$dataProvider->getPagination()->pageParam."']",
    'pager' => [
        'class' => \liyunfang\pager\LinkPager::className(),
        //'template' => '{pageButtons} {customPage} {pageSize}',
        //'pageSizeList' => [10, 20, 30, 50],
        //'pageSizeMargin' => 'margin-left:5px;margin-right:5px;',
        //'pageSizeOptions' => ['class' => 'form-control','style' => 'display: inline-block;width:auto;margin-top:0px;'];
        //'customPageWidth' => 50,
        //'customPageBefore' => ' Jump to ',
        //'customPageAfter' => ' Page ',
        //'customPageMargin' => 'margin-left:5px;margin-right:5px;',
        //'customPageOptions' => ['class' => 'form-control','style' => 'display: inline-block;margin-top:0px;'];
    ],
```

ModelSearch

```
    public function search($params)
    {
        ...
        $pageSize = isset($params['per-page']) ? intval($params['per-page']) : 10;
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
            'pagination' =>  ['pageSize' => $pageSize,],
        ]);

```

2015-09-16 重构代码，增加自定义跳转页面文本框

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~8 days

Total

3

Last Release

3890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e926df688069316e2429d928f3949ca65906ee8fc801d58eaafbeacf9d8efc26?d=identicon)[pgyf](/maintainers/pgyf)

---

Top Contributors

[![pgyf](https://avatars.githubusercontent.com/u/3365344?v=4)](https://github.com/pgyf "pgyf (18 commits)")[![hubeiwei](https://avatars.githubusercontent.com/u/17850096?v=4)](https://github.com/hubeiwei "hubeiwei (4 commits)")

---

Tags

yii2extensionlinkpageryii2-widget-linkpager

### Embed Badge

![Health badge](/badges/liyunfang-yii2-widget-linkpager/health.svg)

```
[![Health](https://phpackages.com/badges/liyunfang-yii2-widget-linkpager/health.svg)](https://phpackages.com/packages/liyunfang-yii2-widget-linkpager)
```

###  Alternatives

[yiister/yii2-advanced-grid

Advanced GridView extension for Yii framework 2

4712.5k](/packages/yiister-yii2-advanced-grid)

PHPackages © 2026

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