PHPackages                             nattreid/routing - 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. [Framework](/categories/framework)
4. /
5. nattreid/routing

ActiveLibrary[Framework](/categories/framework)

nattreid/routing
================

Router extension for Nette Framework

1.2.6(5y ago)06545MITPHPPHP &gt;= 7.1

Since Jun 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nattreid/routing)[ Packagist](https://packagist.org/packages/nattreid/routing)[ RSS](/packages/nattreid-routing/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (5)Versions (32)Used By (5)

Rozšíření Router pro Nette Framework
====================================

[](#rozšíření-router-pro-nette-framework)

Nastaveni
---------

[](#nastaveni)

V **config.neon** zaregistruje extension

```
extensions:
    router: NAttreid\Routing\DI\RoutingExtension
```

a nastavte. Router přebírá parametry $url a $sercure. $url =&gt; adresa, $secure =&gt; https nebo http (TRUE =&gt; https)

```
router:
    routers:
        - FrontRouter('//url/')
        - {FrontRouter('//url/'), 0} #router s prioritou
    configuration:
        locale:
            default: cs
            allowed: [cs, en]
```

FrontRouter
-----------

[](#frontrouter)

```
class FrontRouter extends \NAttreid\Routing\Router {

    public function __construct($url, PagesRepository $pageModel) {
        parent::__construct($url);
    }

    public function createRoutes() {
        $routes = $this->getRouter('Front');

        $routes[] = new Route($this->url, 'Homepage:default');
        $routes[] = new Route($this->url . 'index.php', 'Page:default', Route::ONE_WAY);
        $routes[] = new Route($this->url . '[/]', 'Page:default');
    }

}
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

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

Recently: every ~322 days

Total

31

Last Release

1967d ago

PHP version history (3 changes)1.0.0PHP &gt;= 5.6

1.1.6PHP &gt;= 7.0

1.2.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

---

Top Contributors

[![attreid](https://avatars.githubusercontent.com/u/13151440?v=4)](https://github.com/attreid "attreid (2 commits)")

### Embed Badge

![Health badge](/badges/nattreid-routing/health.svg)

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

###  Alternatives

[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68738.2M686](/packages/nette-bootstrap)[nette/web-project

Nette: Standard Web Project

11093.7k](/packages/nette-web-project)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

32925.3k18](/packages/kdyby-autowired)

PHPackages © 2026

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