PHPackages                             ptheofan/yii2-urlrule - 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. ptheofan/yii2-urlrule

ActiveYii2-extension

ptheofan/yii2-urlrule
=====================

Enhanced UrlRules for Yii2 UrlManager component

017PHP

Since Oct 29Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

UrlRule
=======

[](#urlrule)

An enhanced UrlRule for Yii2 UrlManager component.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ptheofan/yii2-urlrule "*"

```

or add

```
"ptheofan/yii2-urlrule": "*"

```

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

Usage
-----

[](#usage)

TODO: write usage examples. In short, extend the /ptheofan/urlrule/UrlRule and override the getParamValue and the setParamValue. The rest works exactly the same as the default UrlRule. With this approach you can write rules that still use all of the default nice stuff like regexs, etc. and make them super flexible and also support named arguments that work with Database, etc. Also by extending your own routes you can easily create partial url rules, very helpful to remove code duplication and make maintenance easier.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/880939?v=4)[Paris](/maintainers/ptheofan)[@ptheofan](https://github.com/ptheofan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ptheofan-yii2-urlrule/health.svg)

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

PHPackages © 2026

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