PHPackages                             developer-av/yii2-request - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. developer-av/yii2-request

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

developer-av/yii2-request
=========================

Ecso Yii2-Request &amp;&amp; Yii2-UrlManager.

1.0.1(9y ago)021MITPHP

Since May 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/developer-av/Yii2-Request)[ Packagist](https://packagist.org/packages/developer-av/yii2-request)[ RSS](/packages/developer-av-yii2-request/feed)WikiDiscussions master Synced 2mo ago

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

Duplicate url redirect &amp;&amp; language in url Extension for Yii 2
=====================================================================

[](#duplicate-url-redirect--language-in-url-extension-for-yii-2)

[![Total Downloads](https://camo.githubusercontent.com/ff4ef5cec346dd93a013b7b7992e29ac81366fce7aafb9ad3591581072c183e6/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f7065722d61762f796969322d726571756573742f646f776e6c6f616473)](https://packagist.org/packages/developer-av/yii2-request)[![License](https://camo.githubusercontent.com/3f82f1d4d9e5d21229517c5be8181e0d681fb4fea58fdcd1098bc7ea4640f419/68747470733a2f2f706f7365722e707567782e6f72672f646576656c6f7065722d61762f796969322d726571756573742f6c6963656e7365)](https://packagist.org/packages/developer-av/yii2-request)

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

[](#installation)

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

Either run

```
php composer.phar require developer-av/yii2-request

```

or add

```
"developer-av/yii2-request": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'request' => [
            'class' => 'developerav\request\Request',
            'cookieValidationKey' => '************,
            'languages' => [
                'en' => 'en-US',//default language
                'ru' => 'ru-RU',
            ]
        ],
        'urlManager' => [
            'class' => 'developerav\request\UrlManager',
            'withoutWww' => true, // 301 redirect from www.exemple.com -> exemple.com
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
            ],
        ],
    ],
];
```

Generate Url:

```
Html::a('test', ['', 'lang_id' => 'ru'])
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3643d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/551d46099496910d4876902313d4908208a531b044692f8e21ce135f319b9707?d=identicon)[developer-av](/maintainers/developer-av)

---

Top Contributors

[![developer-av](https://avatars.githubusercontent.com/u/15675868?v=4)](https://github.com/developer-av "developer-av (24 commits)")

---

Tags

requestlanguageduplicateyii2urlmanagerecso

### Embed Badge

![Health badge](/badges/developer-av-yii2-request/health.svg)

```
[![Health](https://phpackages.com/badges/developer-av-yii2-request/health.svg)](https://phpackages.com/packages/developer-av-yii2-request)
```

###  Alternatives

[linslin/yii2-curl

Easy and nice cURL extension with RESTful support for Yii2

1811.5M20](/packages/linslin-yii2-curl)[zhuravljov/yii2-rest

Yii2 REST Client

1186.2k](/packages/zhuravljov-yii2-rest)[tunecino/yii2-nested-rest

Adds nested resources routing support along with related actions and relationship handlers to the Yii RESTful API framework

4815.8k](/packages/tunecino-yii2-nested-rest)

PHPackages © 2026

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