PHPackages                             daxslab/yii2-poligloturl - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. daxslab/yii2-poligloturl

ActiveYii2-extension[Localization &amp; i18n](/categories/localization)

daxslab/yii2-poligloturl
========================

Extension to help setup the language of an application based on params specifing the language

1.0.0(8y ago)0218MITPHP

Since Jan 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/daxslab/yii2-poligloturl)[ Packagist](https://packagist.org/packages/daxslab/yii2-poligloturl)[ RSS](/packages/daxslab-yii2-poligloturl/feed)WikiDiscussions master Synced yesterday

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

PoliglotUrl
===========

[](#poligloturl)

Extension to help setup the language of an application based on params specifing the language

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist daxslab/yii2-poligloturl "*"

```

or add

```
"daxslab/yii2-poligloturl": "*"

```

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

Configuration
-------------

[](#configuration)

Configure the View component into the main configuration file of your application:

```
'components' => [
    ...
    'urlManager' => [
        'class' => 'daxslab\poligloturl\UrlManager',
        'enablePrettyUrl' => true,
        'showScriptName' => false,
        'rules' => [
            //home
            ['pattern' => '/', 'route' => 'site/index', 'defaults' => ['lang' => 'en-US']],
            ['pattern' => '/es', 'route' => 'site/index', 'defaults' => ['lang' => 'es']],
            ['pattern' => '/de', 'route' => 'site/index', 'defaults' => ['lang' => 'de']],
        ],
    ],
    ...
]

```

Usage
-----

[](#usage)

Once the extension is configured, simply use it in your views by:

```

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

3046d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13596248?v=4)[Gabriel Alejandro López López](/maintainers/glpzzz)[@glpzzz](https://github.com/glpzzz)

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

---

Top Contributors

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

---

Tags

urli18nyii2seo

### Embed Badge

![Health badge](/badges/daxslab-yii2-poligloturl/health.svg)

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

###  Alternatives

[devgroup/yii2-multilingual

Allows building yii2 apps for multiple languages using regional URL's and domains

152.6k2](/packages/devgroup-yii2-multilingual)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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