PHPackages                             junker/yaml-route-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. junker/yaml-route-service-provider

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

junker/yaml-route-service-provider
==================================

Silex Service provider for using YAML routing files

0.2.2(6y ago)21601MITPHPCI failing

Since Feb 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Junker/YamlRouteServiceProvider)[ Packagist](https://packagist.org/packages/junker/yaml-route-service-provider)[ RSS](/packages/junker-yaml-route-service-provider/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

YamlRouteServiceProvider
========================

[](#yamlrouteserviceprovider)

Silex Service provider for using YAML routing files

[![Latest Stable Version](https://camo.githubusercontent.com/b21821c7bf045d24a1a226d00fdb72475fcc4c2c28fa043abeefeb5a361b7cd2/68747470733a2f2f706f7365722e707567782e6f72672f6a756e6b65722f79616d6c2d726f7574652d736572766963652d70726f76696465722f762f737461626c65)](https://packagist.org/packages/junker/yaml-route-service-provider)[![Total Downloads](https://camo.githubusercontent.com/692285e6a62e5ad44941b213fe0ce45a2dc512b1ed891ced633905e4c79669e8/68747470733a2f2f706f7365722e707567782e6f72672f6a756e6b65722f79616d6c2d726f7574652d736572766963652d70726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/junker/yaml-route-service-provider)[![Build Status](https://camo.githubusercontent.com/41d1c374a35f059e55b1e5c26782c84390d462a796d41d6c037263c74c40e49c/68747470733a2f2f7472617669732d63692e6f72672f4a756e6b65722f59616d6c526f7574655365727669636550726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Junker/YamlRouteServiceProvider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f9dbb99bb7e3c984e87a53a652db88c1c244538288882b4e347d53294db94763/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a756e6b65722f59616d6c526f7574655365727669636550726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Junker/YamlRouteServiceProvider/?branch=master)[![License](https://camo.githubusercontent.com/5fe08251dadd2041a45a59f1a6998162f4123af1ed1f6febee82618ad2617573/68747470733a2f2f706f7365722e707567782e6f72672f6a756e6b65722f79616d6c2d726f7574652d736572766963652d70726f76696465722f6c6963656e7365)](https://packagist.org/packages/junker/yaml-route-service-provider)

Requirements
------------

[](#requirements)

silex 2.x

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

[](#installation)

The best way to install YamlRouteServiceProvider is to use a [Composer](https://getcomposer.org/download):

```
php composer.phar require junker/yaml-route-service-provider

```

Examples
--------

[](#examples)

```
use Junker\Silex\Provider\YamlRouteServiceProvider;

$app->register(new YamlRouteServiceProvider('routes.yml'));

# or

$app->register(new YamlRouteServiceProvider('routes.yml', ['cache_dir' => '/tmp/routes_cache']));
```

Routes config example:

```
# routes.yml

home:
    path: /
    defaults: { _controller: 'Acme\Controller\AppController::indexAction' }

articles.list:
    path: /articles
    defaults: { _controller: 'Acme\Controller\ArticlesController::indexAction' }

articles.view:
    path: /articles/{slug}
    defaults: { _controller: 'Acme\Controller\ArticlesController::viewAction' }
```

Controller example:

```
# Acme\Controller\ArticlesController.php

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

namespace Acme\Controller;

class ArticlesController
{
	public function indexAction(Request $request, Application $app)
	{
		...

		return new Response($articles);
	}

	public function viewAction(Request $request, Application $app, $slug)
	{
		...

		return new Response($article);
	}
}
```

Documentation
-------------

[](#documentation)

[Symfony Routing](http://symfony.com/doc/current/book/routing.html)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~317 days

Recently: every ~397 days

Total

6

Last Release

2203d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1144095?v=4)[Dmitry Kosenkov](/maintainers/Junker)[@Junker](https://github.com/Junker)

---

Top Contributors

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

---

Tags

routeryamlroutesilex

### Embed Badge

![Health badge](/badges/junker-yaml-route-service-provider/health.svg)

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

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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