PHPackages                             simplydi/simplyrouter - 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. simplydi/simplyrouter

ActiveLibrary

simplydi/simplyrouter
=====================

A simple PHP routing system for small apps

21PHP

Since Aug 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bharatkumar200/SimplyRouter)[ Packagist](https://packagist.org/packages/simplydi/simplyrouter)[ RSS](/packages/simplydi-simplyrouter/feed)WikiDiscussions main Synced 1mo ago

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

SimplyRouter
============

[](#simplyrouter)

A simple routing system in PHP

Notes
-----

[](#notes)

- built for learning purpose
- it is a very simple router. For more powerful features like route naming and middleware implementations, go for League Route or Symfony router
- suitable only for small projects

Usage
-----

[](#usage)

```
include 'src/Router.php'; // or use composer: require 'vendor/autoload.php'

$route = new \SimplyDi\SimplyRouter\Router();

$route->match('/', function () {
    echo "Welcome us";
});

$route->match('/about', function () {
    echo "About us";
});

$route->match('/policy/privacy', function () {
    echo "PRIVACY us";
});

$route->match('/post/{slug}', function ($params) {
    $slug = $params['slug'];
    echo "Post with slug: " . $slug;
});

# using controller classes
$route->match('/{slug}', function ($params) {
    $slug = $params['slug'];
    return (new PageController)->single($slug);
});

$route->run(); // run the router
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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://www.gravatar.com/avatar/e62fc23e7e11617b80edb58e4d3df6722b8fd31c36e97cdc70e21a70631d465e?d=identicon)[bharatkumar200](/maintainers/bharatkumar200)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/simplydi-simplyrouter/health.svg)

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

PHPackages © 2026

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