ibexa / templated-uri-bundle
Fork of hautelook/templated-uri-bundle. Symfony Bundle that provides a RFC-6570 compatible router and URL Generator.
Installs: 1 203 237
Dependents: 6
Suggesters: 0
Security: 0
Stars: 3
Watchers: 12
Forks: 1
Type:symfony-bundle
pkg:composer/ibexa/templated-uri-bundle
Requires
- php: >=8.3
- ibexa/templated-uri-router: ^5.0
- symfony/framework-bundle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.5
Replaces
- dev-main / 4.0.x-dev
- 4.0.0
- 3.3.x-dev
- v3.3.2.2
- v3.3.2.1
- v3.3.2
- v3.3.1
- 2.1.x-dev
- v2.1.0.2
- v2.1.0.1
- v2.1.0
- dev-IBX-10997_Removed_deprecation_warning_due_to_signature_of_HautelookTemplatedUriBundle_build
- dev-add-return-type-process
- dev-void-return-type-extension
- dev-templateduri-extension-deprecations
- dev-ENG-140
- dev-ibx-8471-prep-for-sf7
- dev-ibx-8471-symfony-7
This package is auto-updated.
Last update: 2025-11-27 09:49:49 UTC
README
Fork of hautelook/templated-uri-bundle. Symfony Bundle for the https://github.com/hautelook/TemplatedUriRouter
library.
hautelook/TemplatedUriRouter provides a RFC-6570 compatible
Symfony router and URL Generator.
Installation
Assuming you have installed composer, run the following command:
$ composer require ibexa/templated-uri-bundle
Now add the bundle to your Kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hautelook\TemplatedUriBundle\HautelookTemplatedUriBundle(), // ... ); }
If you are using Symfony Flex, this bundle is added automatically to your bundles.php file.
Usage
The bundle exposes a router service (hautelook.router.template) that will generate RFC-6570 compliant URLs.
Here is a sample on how you could use it:
$templateLink = $container->get('hautelook.router.template')->generate('hautelook_demo_route', array( 'page' => '{page}', 'sort' => array('{sort}'), 'filter' => array('{filter}'), ) );
This will produce a link similar to:
/demo?{&page}{&sort*}{&filter*}