PHPackages                             leaseweb/default-routing-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. leaseweb/default-routing-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

leaseweb/default-routing-bundle
===============================

Provides default routing, relative routing and default templating

v1.0.5(10y ago)823.4k↓53.3%1[2 issues](https://github.com/LeaseWeb/LswDefaultRoutingBundle/issues)MITPHPPHP &gt;=5.3.2

Since Mar 23Pushed 10y ago23 watchersCompare

[ Source](https://github.com/LeaseWeb/LswDefaultRoutingBundle)[ Packagist](https://packagist.org/packages/leaseweb/default-routing-bundle)[ Docs](http://www.leaseweblabs.com)[ RSS](/packages/leaseweb-default-routing-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (8)Versions (7)Used By (0)

LswDefaultRoutingBundle
=======================

[](#lswdefaultroutingbundle)

The LswDefaultRoutingBundle adds default routing to your Symfony2 application. Default routing adds a route naming scheme to the configured bundles. This forces consistent naming of routes and simplifies both programming and debugging.

Requirements
------------

[](#requirements)

- Symfony 2.1+

Installation
------------

[](#installation)

Installation is broken down in the following steps:

1. Download LswDefaultRoutingBundle using composer
2. Enable the Bundle
3. Add a default route into your routing.yml
4. Check whether the default routes are added or not

### Step 1: Download LswDefaultRoutingBundle using composer

[](#step-1-download-lswdefaultroutingbundle-using-composer)

Add LswDefaultRoutingBundle in your composer.json:

```
{
    "require": {
        "leaseweb/default-routing-bundle": "*",
        ...
    }
}
```

Now tell composer to download the bundle by running the command:

```
$ php composer.phar update leaseweb/default-routing-bundle
```

Composer will install the bundle to your project's `vendor/leaseweb` directory.

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
