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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dlds/yii2-urlias
================

Yii2 url alias

0.4(11y ago)032new BSDPHP

Since Mar 13Pushed 11y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

fg/UrlAlias
===========

[](#fgurlalias)

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

[](#installation)

#### 1. Install Repository

[](#1-install-repository)

You can install via [composer](http://getcomposer.org/download/).

Run

```
php composer.phar require --prefer-dist "fg/yii2-url-alias" "dev-master"

```

or add to require section of `composer.json:`

```
"fg/yii2-url-alias": "dev-master"

```

#### 2. Edit your config files

[](#2-edit-your-config-files)

\#####2.1. Check Database Connection Params Check your `config/db.php` file. Have correct parameters? #####2.2. Install migrations `php yii migrate/up --migrationPath=@vendor/fg/yii2-url-alias/migrations`

If you want example data, run this queries:

```
INSERT INTO `url_rule` (`id`, `slug`, `route`, `params`, `status`) VALUES
(1, '', 'site/index', 'a:0:{}', 1),
(2, 'about', 'site/about', 'a:0:{}', 1),
(3, 'contact', 'site/contact', 'a:0:{}', 1),
(4, 'login', 'site/login', 'a:0:{}', 1),
(5, 'logout', 'site/logout', 'a:0:{}', 1);

```

\#####2.3. Edit `config/web.php:` file

```
/** Example urlManager config */
'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName'  => false,
            'rules' => [
                [
                    'class' => 'dlds\urlias\components\BaseUrlRule',
                    'connectionID'  => 'db',
                    'redirect301'   => true //if you want 301 redirect
                ]
                ...
            ]
        ],

```

\#####2.4 Test http://YOUR\_LOCAL\_SERVER/about

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~15 days

Total

4

Last Release

4034d ago

### Community

Maintainers

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

---

Top Contributors

[![fg](https://avatars.githubusercontent.com/u/2738851?v=4)](https://github.com/fg "fg (6 commits)")[![svobik7](https://avatars.githubusercontent.com/u/761766?v=4)](https://github.com/svobik7 "svobik7 (6 commits)")

### Embed Badge

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

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

###  Alternatives

[mischasigtermans/laravel-altitude

Claude Code agents for the TALL stack, powered by Laravel Boost

1139.2k](/packages/mischasigtermans-laravel-altitude)[bolt/newswidget

📰 A simple Widget Extension to display the latest Bolt news on the dashboard.

13170.5k3](/packages/bolt-newswidget)

PHPackages © 2026

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