PHPackages                             kolserdav/router - 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. kolserdav/router

ActiveLibrary

kolserdav/router
================

Routing module

v0.2.1(8y ago)1361MITPHP

Since Apr 6Pushed 8y ago2 watchersCompare

[ Source](https://github.com/kolserdav/router)[ Packagist](https://packagist.org/packages/kolserdav/router)[ RSS](/packages/kolserdav-router/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (1)

The simple route module.

*Installation*

~$`composer require kolserdav/router`

\[Make catalog src/Controller ...
Copy file src/Controller/TestController.php ...
Copy file src/Controller/ErrorPage.php ...
Rewrite namespaces ...
Make catalog /config/route ...
Copy file /config/route/routes.yaml\]
or call...

~$`php vendor/kolserdav/router/install`

*Using*

You must use a single access point.

index.php

```
require 'vendor/autoload.php';

use Avir\Router\Route;

$router = new Route();
$router->route();
```

Add your routes in /config/route/routes.yaml

```
index :
      path : /
      controller: IndexController::indexPublic
users :
      path : /users/
      controller : User\UserConroller::usersPublic
```

Create custom controllers with methods.
*For example:*
IndexController::indexPublic
User\\UserConroller::usersPublic

When coinciding field 'path' with URI, the specified controller will be turned on. If URI contains of number, it will be available in the controller as...

```
class SomeClass
{
    public $id

    public function someFunction(){
        $this->id;
    }
}
```

Also you can transfer parameters to URI

```
http://some.domains/some/uri/path?one=param1&two=param2&three=param3 //...

```

and catch them in the controller as

```
class SomeClass
{
   public $params;

   public function someFunction(){
       $this->params; //[ one : param1, two : param2, three : param3 ]
   }
}
```

It's all... Very simple!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~5 days

Total

3

Last Release

2949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/088826e55531cb98a7cca78db30c59555635cfac9c7cd3c21ca8f7edf10b8229?d=identicon)[kolserdav](/maintainers/kolserdav)

---

Top Contributors

[![kolserdav](https://avatars.githubusercontent.com/u/9353076?v=4)](https://github.com/kolserdav "kolserdav (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kolserdav-router/health.svg)

```
[![Health](https://phpackages.com/badges/kolserdav-router/health.svg)](https://phpackages.com/packages/kolserdav-router)
```

###  Alternatives

[getkirby/cms

The Kirby core

1.5k535.5k352](/packages/getkirby-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)

PHPackages © 2026

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