PHPackages                             quangthinh/yii2-route - 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. quangthinh/yii2-route

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

quangthinh/yii2-route
=====================

Dynamic Route Management Helper

v1.1(8y ago)013PHP

Since Dec 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vuquangthinh/yii2-route)[ Packagist](https://packagist.org/packages/quangthinh/yii2-route)[ RSS](/packages/quangthinh-yii2-route/feed)WikiDiscussions master Synced today

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

Route Helper
============

[](#route-helper)

UrlBehavior thêm vào behavior của activerecord muốn tạo link UrlRule để đăng ký url rewrite

Example Tạo url cho 1 model tương ứng Thêm vào behavior

```
[
   'class' => UrlBehavior::className(),
   'routeClass' => ArticleRoute::className(),
   'attributeName' => 'slug' // tùy chọn,
],

```

Tạo class quản ly route

```
class ArticleRoute extends Route
{
    public static $defaultRoute = 'cms/article/view';
}

```

Thêm vào url manage

```
[
    'class' => UrlRule::className(),
    'routeClass' => ArticleRoute::className(),
]

```

Thêm rule validate cho attribute name slug và sử dụng như 1 property của activerecord khi crud

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Total

2

Last Release

3057d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eb0adef83101ce84cfea0dd64562604df50812e8de9a9464e44dcdfcbe59698?d=identicon)[tut4ever](/maintainers/tut4ever)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/quangthinh-yii2-route/health.svg)

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

###  Alternatives

[crodas/text-rank

Extract relevant keywords from a given text

10458.6k1](/packages/crodas-text-rank)[kunststube/rison

A PHP encoder and decoder for Rison, the compact JSON-like data format optimized for URIs.

2464.5k3](/packages/kunststube-rison)[evoweb/extender

Extending extbase domain models like a pro with extender

11260.3k6](/packages/evoweb-extender)

PHPackages © 2026

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