PHPackages                             gnf/namespace-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. gnf/namespace-router

ActiveLibrary[Framework](/categories/framework)

gnf/namespace-router
====================

Silex Routing Extension Driven By Namespace

v0.1(9y ago)04.6k↓88.9%MITPHPPHP &gt;=7

Since Nov 21Pushed 9y agoCompare

[ Source](https://github.com/genesos/namespace-router)[ Packagist](https://packagist.org/packages/gnf/namespace-router)[ RSS](/packages/gnf-namespace-router/feed)WikiDiscussions master Synced 4w ago

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

NamespaceRouter
===============

[](#namespacerouter)

Silex Routing Extension Driven By Namespace

Example
-------

[](#example)

```
# index.php
$app = new Silex\Application;
$app->register(new NamespaceRouteServiceProvider(RootController::class, '/'));
$app->run();

```

```
# \AnyNamespace\RootController
# request '/' => 'root'
class RootController implements ControllerProviderInterface
{
	public function connect(ControllerCollection $controller_collection)
	{
		$controller_collection = $app['controllers_factory'];
		$controller_collection->get('/', function () {
			return new Response('root');
		});
		return $controller_collection;
	}
}

```

```
# \AnyNamespace\Blog
# request '/Blog/View' => 'blog view'
class Blog implements ControllerProviderInterface
{
	public function connect(ControllerCollection $controller_collection)
	{
		$controller_collection = $app['controllers_factory'];
		$controller_collection->get('/View', [$this, 'View']);
		return $controller_collection;
	}
	public function view()
	{
		return new Response('blog view');
	}
}

```

```
# \AnyNamespace\Site\Admin
# request '/Site/Admin/View' => 'admin view'
class Admin implements ControllerProviderInterface
{
	public function connect(ControllerCollection $controller_collection)
	{
		$controller_collection = $app['controllers_factory'];
		$controller_collection->get('/View', [$this, 'View']);
		return $controller_collection;
	}
	public function view()
	{
		return new Response('admin view');
	}
}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

3508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f996f26e2a0ce78c6c68be7341308c088df40a95648c5b1ac8130d75f8b1cc9?d=identicon)[blu](/maintainers/blu)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/gnf-namespace-router/health.svg)

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

###  Alternatives

[flint/flint

Enhanced Silex

12168.9k](/packages/flint-flint)[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25249.1k3](/packages/ddesrosiers-silex-annotation-provider)[tobiassjosten/responsible-service-provider

A Silex ServiceProvider for automagic response formatting.

3492.1k](/packages/tobiassjosten-responsible-service-provider)[php-di/silex-bridge

PHP-DI integration in Silex

2466.0k1](/packages/php-di-silex-bridge)[propel/propel-service-provider

Propel integrationfor Silex.

2625.4k3](/packages/propel-propel-service-provider)[stikmanw/silex-newrelic

Integrate the NewRelic PHP API into Silex framework

2014.7k](/packages/stikmanw-silex-newrelic)

PHPackages © 2026

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