PHPackages                             loveorigami/yii2-reversed-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. loveorigami/yii2-reversed-pagination

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

loveorigami/yii2-reversed-pagination
====================================

Yii2 reversed pagination

2.1(11y ago)117652MITPHP

Since Nov 16Pushed 11y ago6 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2-reversed-pagination
========================

[](#yii2-reversed-pagination)

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

[](#installation)

### Composer

[](#composer)

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

Either run `php composer.phar require loveorigami/yii2-reversed-pagination "~2.0"`

or add `"loveorigami/yii2-reversed-pagination": "~2.0"` to the require section of your `composer.json`

### Using

[](#using)

Use for reversed pagination for Yii2.

In controller

```
    public function actionIndex()
    {
        $query = Article::find()->all();
        $countQuery = clone $query;
        $pages = new \loveorigami\pagination\ReversePagination(
            [
                'totalCount' => $countQuery->count(),
                'pageSize' => 10, // or in config Yii::$app->params['pageSize']
            ]
        );
        $pages->pageSizeParam = false;
        $models = $query->offset($pages->offset)
            ->limit($pages->limit)
            ->all();

        return $this->render('index',
            [
                'models'  => $models,
                'pages' => $pages,
            ]
        );
    }
```

In view

```
    foreach($models as $model):
      // display a model...
    endforeach;

    echo \loveorigami\pagination\ReverseLinkPager::widget([
        'pagination' => $pages,
        'registerLinkTags' => true
    ]);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4196d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

pagerpaginationreverseslugyii2Behavioryii

### Embed Badge

![Health badge](/badges/loveorigami-yii2-reversed-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/loveorigami-yii2-reversed-pagination/health.svg)](https://phpackages.com/packages/loveorigami-yii2-reversed-pagination)
```

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)

PHPackages © 2026

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