PHPackages                             caijq4ever/yii2-urlalias - 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. caijq4ever/yii2-urlalias

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

caijq4ever/yii2-urlalias
========================

like opencart seo url

22163PHP

Since Jul 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/caijq4ever/yii2-urlalias)[ Packagist](https://packagist.org/packages/caijq4ever/yii2-urlalias)[ RSS](/packages/caijq4ever-yii2-urlalias/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2 url alias
==============

[](#yii2-url-alias)

like opencart seo url

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

[](#installation)

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

Either run

```
composer require --prefer-dist caijq4ever/yii2-urlalias "dev-master"

```

or add

```
"caijq4ever/yii2-urlalias": "dev-master"

```

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

Usage
-----

[](#usage)

1.Edit `config/web.php` file

```
'components' => [
    ...
    'urlManager' => [
        'enablePrettyUrl' => true,
        'showScriptName' => false,
        'rules' => [
            [
                'class' => 'junqi\urlalias\UrlRule',
            ],
        ],
    ],
    ...
],
```

2.Install migrations `yii migrate/up --migrationPath=@vendor/caijq4ever/yii2-urlalias/migrations`

3.Insert fake data

```
INSERT INTO `url_alias` (`id`, `alias`, `route`, `params`, `status`) VALUES
(1, 'hello', 'site/index', 'a:0:{}', 1),
(2, 'world', 'site/about', 'a:0:{}', 1);
```

4.Run `http://path/to/your/project/hello` on your browser

TODO
----

[](#todo)

- Cache
- ...

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/24976abb31955c4b6ac72bb7a53a88cfd27e1f988c281166fcf09e997a88093f?d=identicon)[caijq4ever](/maintainers/caijq4ever)

---

Top Contributors

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

---

Tags

seourlaliasyii2

### Embed Badge

![Health badge](/badges/caijq4ever-yii2-urlalias/health.svg)

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

###  Alternatives

[dnoegel/php-xdg-base-dir

implementation of xdg base directory specification for php

6.3k239.4M16](/packages/dnoegel-php-xdg-base-dir)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[mark-gerarts/auto-mapper-plus

An AutoMapper for PHP

5623.2M21](/packages/mark-gerarts-auto-mapper-plus)[wamania/php-stemmer

Native PHP Stemmer

1434.0M33](/packages/wamania-php-stemmer)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)

PHPackages © 2026

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