ibexa / templated-uri-router
Fork of hautelook/templated-uri-router. Symfony RFC-6570 compatible router and URL Generator
Requires
- php: >=8.3
- symfony/routing: ^7.4 || ^8.1
Requires (Dev)
- phpunit/phpunit: ^10.5 || ^11.5
- symfony/phpunit-bridge: ^7.4 || ^8.1
Suggests
None
Provides
None
Conflicts
None
Replaces
- dev-main / 6.0.x-dev
- 6.0.0
- 5.0.x-dev
- 5.0.0
- 4.6.x-dev
- 3.3.x-dev
- v3.3.0
- 2.0.x-dev
- v2.0.3
- dev-merge/3.3-to-5.0
- dev-IBX-12980_readme_branches
- dev-IBX-12980_branch_alias_4.6
- dev-symfony-8
- dev-sync-with-upstream-4517833
- dev-ibx-8471-symfony-7
- dev-ibx-8119-php-upgrade
- dev-add-pr-base-check
- dev-IBX-2153-move-config-resolver
This package is auto-updated.
Last update: 2026-10-27 14:13:04 UTC
README
Fork of hautelook/templated-uri-router. Symfony2 UrlGenerator that provides a RFC-6570 compatible router and URL Generator.
Currently it is extremely naive, and incomplete.
However, it does what we need it to do. Contributions are welcome.
Branches:
3.3: Stable branch for Ibexa DXP 4.6.x5.0: Stable branch for Ibexa DXP 5.0.xmain: Obsolete stable branch for Ibexa DXP 6.0.x ( 6.0.0 will drop dependency to this package )
Installation
Run the following command (assuming you have composer.phar or composer binary installed), or
require ibexa/templated-uri-router to your composer.json and run composer install:
$ composer require ibexa/templated-uri-router
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
The symfony2 bundle lives at https://github.com/hautelook/TemplatedUriBundle.