Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phpmentors-jp/route-templating-bundle
A Symfony bundle for route templating
https://github.com/phpmentors-jp/route-templating-bundle
php routing symfony symfony-bundle
Last synced: about 1 month ago
JSON representation
A Symfony bundle for route templating
- Host: GitHub
- URL: https://github.com/phpmentors-jp/route-templating-bundle
- Owner: phpmentors-jp
- License: bsd-2-clause
- Created: 2016-06-13T04:12:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T02:30:58.000Z (over 2 years ago)
- Last Synced: 2024-11-15T22:13:11.608Z (about 1 month ago)
- Topics: php, routing, symfony, symfony-bundle
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RouteTemplatingBundle
A Symfony bundle for route templating
[![Total Downloads](https://poser.pugx.org/phpmentors/route-templating-bundle/downloads)](https://packagist.org/packages/phpmentors/route-templating-bundle)
[![Latest Stable Version](https://poser.pugx.org/phpmentors/route-templating-bundle/v/stable)](https://packagist.org/packages/phpmentors/route-templating-bundle)
[![Latest Unstable Version](https://poser.pugx.org/phpmentors/route-templating-bundle/v/unstable)](https://packagist.org/packages/phpmentors/route-templating-bundle)
[![Build Status](https://travis-ci.com/phpmentors-jp/route-templating-bundle.svg?branch=master)](https://travis-ci.com/phpmentors-jp/route-templating-bundle)## Features
* Route templating
* Copy all routes defined in the imported resource with the specified prefix## Installation
RouteTemplatingBundle can be installed using [Composer](http://getcomposer.org/).
First, add the dependency to `phpmentors/route-templating-bundle` into your `composer.json` file as the following:
**Stable version:**
```
composer require phpmentors/route-templating-bundle "1.1.*"
```**Development version:**
```
composer require phpmentors/route-templating-bundle "~1.2@dev"
```Second, add `PHPMentorsRouteTemplatingBundle` into your bundles to register in `AppKernel::registerBundles()` as the following:
```php
...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new PHPMentors\RouteTemplatingBundle\PHPMentorsRouteTemplatingBundle(),
);
...
```## Configuration
`app/config/routing.yml:`
```yaml
# ...photos:
resource: "@PhotoBundle/Resources/config/routing.yml"
prefix: /photosadmin_photos:
resource: "@PhotoBundle/Resources/config/routing.yml" # Same resource as `photos`
prefix: /admin/photos
copy_as: admin_
```## Support
If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on [Issues](https://github.com/phpmentors-jp/route-templating-bundle/issues).
## Copyright
Copyright (c) 2016-2018 KUBO Atsuhiro, All rights reserved.
## License
[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)