PHPackages                             mikbox74/yii2-autorouter - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mikbox74/yii2-autorouter

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

mikbox74/yii2-autorouter
========================

This component allows modules to create rules for UrlManager by method

1.0.1(8y ago)130MITPHP

Since Aug 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mikbox74/yii2-autorouter)[ Packagist](https://packagist.org/packages/mikbox74/yii2-autorouter)[ RSS](/packages/mikbox74-yii2-autorouter/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

yii2-autorouter
===============

[](#yii2-autorouter)

This component allows modules to create rules for UrlManager by method.

Installing:

`composer require mikbox74/yii2-autorouter`

Step 1: add the component in bootstrap list of your application (main.php, main-local.php) like here:

```
return [
    // ...
     'bootstrap' => [
         [
             'class' => \mikbox74\Autorouter\AutorouterComponent::class,
         ],
         //...
     ],
];
```

Step 2: make your module class to implement \\mikbox74\\Autorouter\\AutorouterInterface then add a method getUrlRules() and make it returning a rule array as if you configure the module's rules in main.php or main-local.php, like in the example:

```
 public static function getUrlRules()
 {
     return [
         [
             'class' => 'yii\rest\UrlRule',
             'controller' => [
                 'mymodule/controller',
             ],
         ],

         'GET  mymodule/controller/'   => 'mymodule/controller/view',
         'POST mymodule/controller'            => 'mymodule/controller/create',
         'PUT mymodule/controller/'    => 'mymodule/controller/update',
         'DELETE mymodule/controller/' => 'mymodule/controller/delete',
     ];
 }
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Total

2

Last Release

3232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d88a092bb9edc1afd007e8baa2338ccc75c1c87d2c9432c8697479b752deec8?d=identicon)[MikUrrey](/maintainers/MikUrrey)

---

Top Contributors

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

---

Tags

phpurlmanageryii2yii2-autorouteryii2-extension

### Embed Badge

![Health badge](/badges/mikbox74-yii2-autorouter/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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