PHPackages                             hautelook/templated-uri-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. hautelook/templated-uri-router

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

hautelook/templated-uri-router
==============================

Symfony URL generator that provides an RFC-6570-compatible router.

4.0.0(3y ago)21.8M↓19.3%1[1 issues](https://github.com/goetas/TemplatedUriRouter/issues)2MITPHPPHP &gt;=8.0.2

Since Dec 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/goetas/TemplatedUriRouter)[ Packagist](https://packagist.org/packages/hautelook/templated-uri-router)[ Docs](http://www.hautelooktech.com/)[ RSS](/packages/hautelook-templated-uri-router/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (14)Used By (2)

Hautelook Templated URI Router
==============================

[](#hautelook-templated-uri-router)

Symfony URL generator that provides an [RFC-6570](https://tools.ietf.org/html/rfc6570)-compatible router.

Currently, it is extremely naive and incomplete. However, it does what we need it to do. Contributions are welcome.

[![Build Status](https://camo.githubusercontent.com/61d81d22b019569ed7c41f2888f2c8f733bcd282831de6624290181a5cac102b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f68617574656c6f6f6b2f54656d706c61746564557269526f757465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hautelook/TemplatedUriRouter)

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

[](#installation)

Run the following command (assuming you have composer.phar or composer binary installed), or require `hautelook/templated-uri-router` to your `composer.json` and run `composer install`:

```
$ composer require hautelook/templated-uri-router
```

Usage
-----

[](#usage)

```
# routing.yml
hautelook_demo_route:
    pattern: /demo
```

```
use Hautelook\TemplatedUriRouter\Routing\Generator\Rfc6570Generator as TemplateGenerator;

$templateGenerator = new TemplateGenerator($routes, $context);
$templatedUri      = $templateGenerator->generate('hautelook_demo_route', array(
    'page'   => '{page}',
    'sort'   => array('{sort}'),
    'filter' => array('{filter}'),
));
```

This will produce a link similar to:

```
/demo{?page,sort*,filter*}

```

Bundle
------

[](#bundle)

The Symfony bundle lives at .

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~277 days

Recently: every ~257 days

Total

13

Last Release

1215d ago

Major Versions

1.0.1 → 2.0.02014-07-28

2.0.3 → 3.0.02018-11-23

3.4.0 → 4.0.02023-01-19

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

4.0.0PHP &gt;=8.0.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776743?v=4)[Asmir Mustafic](/maintainers/goetas)[@goetas](https://github.com/goetas)

![](https://avatars.githubusercontent.com/u/70618696?v=4)[Brendan Schlosser](/maintainers/brensch)[@brensch](https://github.com/brensch)

---

Top Contributors

[![goetas](https://avatars.githubusercontent.com/u/776743?v=4)](https://github.com/goetas "goetas (15 commits)")[![baldurrensch](https://avatars.githubusercontent.com/u/871417?v=4)](https://github.com/baldurrensch "baldurrensch (14 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (12 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (6 commits)")[![webhdx](https://avatars.githubusercontent.com/u/10212760?v=4)](https://github.com/webhdx "webhdx (6 commits)")[![willdurand](https://avatars.githubusercontent.com/u/217628?v=4)](https://github.com/willdurand "willdurand (5 commits)")[![MaSpeng](https://avatars.githubusercontent.com/u/18685557?v=4)](https://github.com/MaSpeng "MaSpeng (4 commits)")[![muub](https://avatars.githubusercontent.com/u/262801?v=4)](https://github.com/muub "muub (3 commits)")[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (3 commits)")[![mwadon](https://avatars.githubusercontent.com/u/3395702?v=4)](https://github.com/mwadon "mwadon (1 commits)")

---

Tags

urlurijsonsymfonyxmlrouterRFC 6570HATEOAS

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hautelook-templated-uri-router/health.svg)

```
[![Health](https://phpackages.com/badges/hautelook-templated-uri-router/health.svg)](https://phpackages.com/packages/hautelook-templated-uri-router)
```

###  Alternatives

[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)

PHPackages © 2026

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