Search by

ibexa / templated-uri-bundle

ezrobotlserwatka

Fork of hautelook/templated-uri-bundle. Symfony Bundle that provides a RFC-6570 compatible router and URL Generator.

Package info

github.com/ibexa/templated-uri-bundle

Homepage

Type:symfony-bundle

pkg:composer/ibexa/templated-uri-bundle

Statistics

Installs: 1 645 980

Dependents: 5

Suggesters: 0

Stars: 3

6.0.0 2026-09-21 14:06 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.

Branches:

  • 3.3 : Stable branch for Ibexa DXP 4.6.x
  • 4.0 : Stable branch for Ibexa DXP 5.0.x
  • main : Obsolete stable branch for Ibexa DXP 6.0.x ( 6.0.0 will drop dependency to this bundle )

Build Status SensioLabsInsight

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*}