Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibexa/templated-uri-bundle
https://github.com/ibexa/templated-uri-bundle
hacktoberfest
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ibexa/templated-uri-bundle
- Owner: ibexa
- License: mit
- Created: 2021-09-10T07:54:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T14:47:04.000Z (over 2 years ago)
- Last Synced: 2024-09-16T17:53:11.091Z (2 months ago)
- Topics: hacktoberfest
- Language: PHP
- Size: 23.4 KB
- Stars: 2
- Watchers: 11
- 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.[![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*}
```