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

ActiveLibrary[Framework](/categories/framework)

nsrosenqvist/soma-router
========================

League Route for the SOMA framework

1.0.0(5y ago)03MITPHPPHP &gt;=7.1.0

Since Jun 9Pushed 5y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

SOMA Router
===========

[](#soma-router)

Installation
------------

[](#installation)

```
composer require nsrosenqvist/soma-router
```

Usage
-----

[](#usage)

Register the service provider, preferably alias `NSRosenqvist\Soma\Router\Facades\Router` to `Router`, and then simply register your routes using the Facade. The API is found [here](https://route.thephpleague.com/4.x/routes/).

The system event `router.init` is a great place to register your routes.

```
namespace MyApp;

use Soma\ServiceProvider;
use Psr\Container\ContainerInterface;

use Laminas\Diactoros\Response;

class RouterProvider extends ServiceProvider
{
    public function boot(ContainerInterface $c)
    {
        listen('router.init', function($router) use ($c) {
            // map a route
            $router->map('GET', '/', function (ServerRequestInterface $request) : ResponseInterface {
                $response = new Response;
                $response->getBody()->write('Hello, World!');
                return $response;
            });

            // or include a file with all route definitions
            include "path/to/routes.php";
        });
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

2163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc4837ce5eb1f32142e8aefef1d53e10ae638fcff864e1c7c67c1e5b2b496e85?d=identicon)[nsrosenqvist](/maintainers/nsrosenqvist)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[laravel/octane

Supercharge your Laravel application's performance.

4.0k21.5M159](/packages/laravel-octane)[cakephp/authentication

Authentication plugin for CakePHP

1153.6M67](/packages/cakephp-authentication)[forme/framework

An MVC framework for WordPress.

175.0k3](/packages/forme-framework)

PHPackages © 2026

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