PHPackages                             pendalf89/yii2-redirect - 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. pendalf89/yii2-redirect

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

pendalf89/yii2-redirect
=======================

Component for convenient URL redirects in Yii2.

1.0.3(2y ago)116MITPHP

Since Nov 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PendalF89/yii2-redirect)[ Packagist](https://packagist.org/packages/pendalf89/yii2-redirect)[ RSS](/packages/pendalf89-yii2-redirect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Yii2 redirect component
=======================

[](#yii2-redirect-component)

Component for convenient URL redirects in Yii2.

Features
--------

[](#features)

- All redirects are stored in the DB
- Fast speed
- Easy installation and usage

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

[](#installation)

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

Either run

```
php composer.phar require pendalf89/yii2-redirect

```

or add

```
"pendalf89/yii2-redirect": "^1.0.0"

```

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

Create table in your database (MySQL, Postgres etc.)

```
CREATE TABLE `redirect` (
    `source` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `target` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `created_at` datetime NOT NULL,
    PRIMARY KEY (`source`) USING BTREE,
    KEY `created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
```

Configuration:

```
'on beforeRequest' => function() {
    Yii::$app->redirect->run();
},
'components' => [
    'redirect' => 'pendalf89\redirect\Redirect',
],
```

Installation done.

Usage
-----

[](#usage)

Just add your urls to DB:

```
Yii::$app->redirect->add('https://example.com/from/', 'https://example.com/to/');

```

After that the redirects will work.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

4

Last Release

809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d4a4b4764a0393c51349746c05db96397f17cce78fa5c025609aa1bb3489eea?d=identicon)[PendalF89](/maintainers/PendalF89)

---

Top Contributors

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

---

Tags

yii2redirectyii 2

### Embed Badge

![Health badge](/badges/pendalf89-yii2-redirect/health.svg)

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

###  Alternatives

[softark/yii2-dual-listbox

Bootstrap Dual Listbox Widget for Yii 2

20144.4k11](/packages/softark-yii2-dual-listbox)

PHPackages © 2026

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