PHPackages                             rossriley/stack-aura-router - 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. rossriley/stack-aura-router

ActiveLibrary[API Development](/categories/api)

rossriley/stack-aura-router
===========================

Stack middleware to add Routes to the request object

1.0(10y ago)31.5kMITPHPPHP &gt;=5.4.0

Since Mar 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rossriley/stack-aura-router)[ Packagist](https://packagist.org/packages/rossriley/stack-aura-router)[ RSS](/packages/rossriley-stack-aura-router/feed)WikiDiscussions master Synced yesterday

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

Stack Aura Router
-----------------

[](#stack-aura-router)

### Technologies Used

[](#technologies-used)

You need to build your app using [Stack PHP](http://stackphp.com)

### Installation

[](#installation)

Is best done via composer, all you need to do is add this to the (or ignore any packages that you already have) require block of your composer.json file:

```
require: {
    ....
    "aura/router": "~2.0@dev" ,
    "rossriley/stack-aura-router": "1.0.*@dev",
    "stack/builder" : "dev-master",
    "stack/url-map" : "dev-master",
    "stack/run"     : "dev-master",
    ....
}

```

### How it works

[](#how-it-works)

This project works on a very simple concept. Using [Aura Router](https://github.com/auraphp/Aura.Router/) which is a lovely decoupled Routing package you can define your routes and add the data to an HTTP request object.

Here's an example of bootstrapping an application:

First up configure your routes:

```
#routes.php
