Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ibexa/templated-uri-bundle


https://github.com/ibexa/templated-uri-bundle

hacktoberfest

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

Hautelook Templated URI Bundle
==============================

Fork of `hautelook/templated-uri-bundle`. Symfony Bundle for the [https://github.com/hautelook/TemplatedUriRouter](https://github.com/hautelook/TemplatedUriRouter)
library.
`hautelook/TemplatedUriRouter` provides a [RFC-6570](https://tools.ietf.org/html/rfc6570) compatible
Symfony router and URL Generator.

[![Build Status](https://secure.travis-ci.org/hautelook/TemplatedUriBundle.png?branch=master)](https://travis-ci.org/hautelook/TemplatedUriBundle)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/cf31d6be-a1b8-41b5-a718-9f35660c321b/mini.png)](https://insight.sensiolabs.com/projects/cf31d6be-a1b8-41b5-a718-9f35660c321b)

## Installation

Assuming you have installed [composer](https://getcomposer.org/), run the following command:

```bash
$ composer require ibexa/templated-uri-bundle
```

Now add the bundle to your Kernel:

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