PHPackages                             sergiors/routing-service-provider - 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. [API Development](/categories/api)
4. /
5. sergiors/routing-service-provider

ActiveLibrary[API Development](/categories/api)

sergiors/routing-service-provider
=================================

Import your routes from YAML, PHP files or Directory.

1.x-dev(10y ago)442.5k1MITPHP

Since Jan 28Pushed 8y ago3 watchersCompare

[ Source](https://github.com/sergiors/routing-service-provider)[ Packagist](https://packagist.org/packages/sergiors/routing-service-provider)[ RSS](/packages/sergiors-routing-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (2)Used By (1)

Routing Service Provider
------------------------

[](#routing-service-provider)

[![Build Status](https://camo.githubusercontent.com/fe03235eeebae8d9ca7ed76c57d494a6c154a27b67799d57bced394919abfe03/68747470733a2f2f7472617669732d63692e6f72672f73657267696f72732f726f7574696e672d736572766963652d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/inbep/routing-service-provider)

Import your routes from yaml, php files or directory.

Install
-------

[](#install)

```
composer require sergiors/routing-service-provider "dev-master"

```

How to user
-----------

[](#how-to-user)

Your yaml file

```
index_controller:
    prefix: /
    defaults: {_controller: 'Acme\Acme\Controller\IndexController::indexAction'}
```

In your php file

```
use Sergiors\Silex\RoutingServiceProvider;

$app->register(new RoutingServiceProvider(), [
    'routing.resource' => __DIR__.'/routing.yml'
]);
```

Remeber, you need install `symfony/yaml` to use YAML.

To use `%root_dir%` in your yaml files, you need to install `symfony/dependency-injection` and set `$app['routing.replacements'] = ['root_dir' => '']`

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

3757d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75b67763139f7a8c96302299f5a40a386d565829af3061bb55465c8808d54428?d=identicon)[sergiors](/maintainers/sergiors)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sergiors-routing-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/sergiors-routing-service-provider/health.svg)](https://phpackages.com/packages/sergiors-routing-service-provider)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)

PHPackages © 2026

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