PHPackages                             zegnat/simplisticrouter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zegnat/simplisticrouter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zegnat/simplisticrouter
=======================

The simplest of routers, just what I needed.

16PHP

Since Dec 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Zegnat/php-simplisticrouter)[ Packagist](https://packagist.org/packages/zegnat/simplisticrouter)[ RSS](/packages/zegnat-simplisticrouter/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

SimplisticRouter
================

[](#simplisticrouter)

The simplest of routers, just what I needed. When everything else seems to offer more functions than I need for a minimum viable product.

For anything more than an MVP, I am a really big fan of [FastRoute](https://github.com/nikic/FastRoute) and projects like [Route](https://route.thephpleague.com/) that make use of it.

Install
-------

[](#install)

Via Composer

```
$ composer require zegnat/simplistic-router
```

Usage
-----

[](#usage)

```
$handlers = new \Yuloh\Container\Container();
$handlers->set('index', function () {
    return new \App\SomeIndexControllerPerhaps();
});
$handlers->set('404', function () {
    return new \App\My404Handler();
});
$routes = [
    [
        'route' => '/',
        'handler' => 'index',
    ],
];
$router = new \Zegnat\SimplisticRouter\SimplisticRouter($routes, '404', $handlers);
$response = $router->handle($request);
```

License
-------

[](#license)

The BSD Zero Clause License (0BSD). Please see the LICENSE file for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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/490579?v=4)[Martijn van der Ven](/maintainers/Zegnat)[@Zegnat](https://github.com/Zegnat)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zegnat-simplisticrouter/health.svg)

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

###  Alternatives

[pxlrbt/filament-environment-indicator

Indicator for the current environment inside Filament

1511.1M13](/packages/pxlrbt-filament-environment-indicator)[nfephp-org/sped-common

sped-common é parte do projeto NFePHP.

1081.8M71](/packages/nfephp-org-sped-common)[mastani/laravel-google-static-map

Laravel Google Static Map Generator

471.6M9](/packages/mastani-laravel-google-static-map)[kartik-v/yii2-widget-rangeinput

An enhanced Yii 2 widget encapsulating the HTML 5 range input (sub repo split from yii2-widgets)

194.0M3](/packages/kartik-v-yii2-widget-rangeinput)[contributte/forms-multiplier

Multiplier for nette forms

281.5M4](/packages/contributte-forms-multiplier)[denngarr/seat-srp

A module for SeAT that tracks SRP requests

1226.8k](/packages/denngarr-seat-srp)

PHPackages © 2026

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