PHPackages                             amhol/extendable-routing - 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. [API Development](/categories/api)
4. /
5. amhol/extendable-routing

ActiveLibrary[API Development](/categories/api)

amhol/extendable-routing
========================

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

1.0(11y ago)026PHPPHP &gt;=5.4.0

Since Jun 3Pushed 11y ago2 watchersCompare

[ Source](https://github.com/AMHOL/extendable-routing)[ Packagist](https://packagist.org/packages/amhol/extendable-routing)[ RSS](/packages/amhol-extendable-routing/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel Extendable Router
=========================

[](#laravel-extendable-router)

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `amhol/extendable-routing`.

```
"require": {
    "amhol/extendable-routing": "1.*"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'AMHOL\ExtendableRouting\ExtendableRoutingServiceProvider'

```

Usage
-----

[](#usage)

Firstly, you need to add your route extensions, I prefer to do this by adding an `app/routeextensions.php` file as below:

```
