https://github.com/ibexa/templated-uri-bundle
https://github.com/ibexa/templated-uri-bundle
hacktoberfest
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibexa/templated-uri-bundle
- Owner: ibexa
- License: mit
- Created: 2021-09-10T07:54:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-26T12:35:16.000Z (about 1 year ago)
- Last Synced: 2025-05-26T13:54:31.827Z (about 1 year ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 39.1 KB
- Stars: 3
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.
[](https://travis-ci.org/hautelook/TemplatedUriBundle)
[](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*}
```