PHPackages                             dlds/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. dlds/yii2-return-url

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

dlds/yii2-return-url
====================

Yii2 ReturnUrl filter

1.0.1(10y ago)02.1kBSD-3-ClausePHPPHP &gt;=5.6.0

Since Aug 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dlds/yii2-return-url)[ Packagist](https://packagist.org/packages/dlds/yii2-return-url)[ RSS](/packages/dlds-yii2-return-url/feed)WikiDiscussions master Synced 1mo 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.

### Install via Composer

[](#install-via-composer)

In "composer.json" your project, add the following lines:

```
"require": {
    ...
    "dlds/yii2-return-url": "*"
},
```

Then update your project:

```
php composer.phar update --prefer-dist

```

### Usage

[](#usage)

In your controller add ReturnUrl filter to behaviors:

```
public function behaviors()
{
    return [
        'returnUrl' => [
            'class' => 'dlds\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/dlds/yii2-return-url/blob/master/LICENSE.md) file for details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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

Every ~55 days

Recently: every ~69 days

Total

6

Last Release

4008d ago

Major Versions

v0.1.0 → 1.0.02015-05-06

PHP version history (2 changes)v0.0.1PHP &gt;=5.4.0

1.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f0d05bb48111bd348c97af007c453b374ba03c36ec4fd114dfd73896bf5958?d=identicon)[dlds](/maintainers/dlds)

---

Top Contributors

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

---

Tags

filteryii2return-url

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dlds-yii2-return-url/health.svg)](https://phpackages.com/packages/dlds-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)
