PHPackages                             nezhelskoy/yii2-return-url - 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. [Search &amp; Filtering](/categories/search)
4. /
5. nezhelskoy/yii2-return-url

ActiveYii2-extension[Search &amp; Filtering](/categories/search)

nezhelskoy/yii2-return-url
==========================

Yii2 ReturnUrl filter

v0.1.2(10y ago)35943BSD-3-ClausePHP

Since Aug 23Pushed 10y ago1 watchersCompare

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

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

Yii2 ReturnUrl filter
=====================

[](#yii2-returnurl-filter)

Keeps current URL in session for controller actions so we can return to it if needed.

This is Yii2 port of [set-return-url-filter](https://github.com/yiiext/set-return-url-filter) extension.

### Installation

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist nezhelskoy/yii2-return-url

```

Or add

```
"nezhelskoy/yii2-return-url": "~0.1.0"

```

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

### Usage

[](#usage)

In your controller add ReturnUrl filter to behaviors:

```
public function behaviors()
{
    return [
        'returnUrl' => [
            'class' => 'nezhelskoy\returnUrl\ReturnUrl',
        ],
    ];
}
```

For access to previously visited url:

```
Yii::$app->user->getReturnUrl();
```

License
-------

[](#license)

yii2-return-url is released under the BSD License. See [LICENSE.md](https://github.com/nezhelskoy/yii2-return-url/blob/master/LICENSE.md) file for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~121 days

Recently: every ~151 days

Total

6

Last Release

3676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/584cef95e40d073aa08ee8966c79799d752ef2ad97583625e5e0c6fa5ea28d9d?d=identicon)[nezhelskoy](/maintainers/nezhelskoy)

---

Top Contributors

[![nezhelskoy](https://avatars.githubusercontent.com/u/2945846?v=4)](https://github.com/nezhelskoy "nezhelskoy (3 commits)")[![ezoterik](https://avatars.githubusercontent.com/u/1498377?v=4)](https://github.com/ezoterik "ezoterik (2 commits)")

---

Tags

filteryii2returnUrl

### Embed Badge

![Health badge](/badges/nezhelskoy-yii2-return-url/health.svg)

```
[![Health](https://phpackages.com/badges/nezhelskoy-yii2-return-url/health.svg)](https://phpackages.com/packages/nezhelskoy-yii2-return-url)
```

###  Alternatives

[thrieu/yii2-grid-view-state

Save filters from GridView to session, keep the filter state between pages.

1313.1k1](/packages/thrieu-yii2-grid-view-state)[cyneek/yii2-routes

Routing and filtering extension system for Yii2 framework that emulates the Laravel routing system.

202.1k](/packages/cyneek-yii2-routes)

PHPackages © 2026

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