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

ActiveLibrary[Framework](/categories/framework)

nextras/static-router
=====================

Simple static router for Nette Framework

v2.0.1(5y ago)25138.7k↓21.3%21MITPHPPHP &gt;=7.1

Since Oct 5Pushed 5y ago7 watchersCompare

[ Source](https://github.com/nextras/static-router)[ Packagist](https://packagist.org/packages/nextras/static-router)[ Docs](https://github.com/nextras/static-router)[ RSS](/packages/nextras-static-router/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (13)Used By (1)

Nextras StaticRouter
====================

[](#nextras-staticrouter)

[![Build Status](https://github.com/nextras/static-router/workflows/QA/badge.svg?branch=master)](https://github.com/nextras/static-router/actions?query=workflow%3AQA+branch%3Amaster)[![Downloads this Month](https://camo.githubusercontent.com/acda5b21fc36f6cb57e2bdb78a2bef779f5320e4697a12dfc786cfcbcf7ca306/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6578747261732f7374617469632d726f757465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/static-router)[![Stable Version](https://camo.githubusercontent.com/1967775f68640a2f6e66533eab55e6f174fa6af9fff5a2ba19e75dd7841a05d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6578747261732f7374617469632d726f757465722e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/static-router)

### Installation

[](#installation)

Add to your composer.json:

```
"require": {
	"nextras/static-router": "~2.0"
}

```

### Example

[](#example)

```
use Nextras\Routing\StaticRouter;

$router = new StaticRouter(['Homepage:default' => 'index.php'], StaticRouter::ONE_WAY);

$router = new StaticRouter([
	'Homepage:default' => '',
	'Auth:signIn' => 'sign-in',
	'Auth:signOut' => 'sign-out',
	'Auth:signUp' => 'sign-up',
]);
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 90.7% 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 ~206 days

Recently: every ~252 days

Total

12

Last Release

1975d ago

Major Versions

v1.2.0 → v2.0.0-rc12019-02-11

PHP version history (3 changes)v1.0.0-rc1PHP ~5.3

v1.0.1PHP &gt;=5.3

v2.0.0-rc1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/953773db6e30161b5e76572bf909c24e8ef07d7419aeebc311e071600ea99bef?d=identicon)[hrach](/maintainers/hrach)

![](https://www.gravatar.com/avatar/6163a0eec16c2bfc9cce0c7c8801b5166cca9af81a146764676059a965044000?d=identicon)[JanTvrdik](/maintainers/JanTvrdik)

---

Top Contributors

[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (49 commits)")[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (4 commits)")[![mrtnzlml](https://avatars.githubusercontent.com/u/978368?v=4)](https://github.com/mrtnzlml "mrtnzlml (1 commits)")

---

Tags

nette-componentnextrasroutingnetterouternextras

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[nette/application

🏆 Nette Application: a full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.

44615.4M983](/packages/nette-application)[nette/web-project

Nette: Standard Web Project

10991.8k](/packages/nette-web-project)[adamstipak/nette-rest-route

Rest route for Nette Framework

67150.8k](/packages/adamstipak-nette-rest-route)

PHPackages © 2026

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