PHPackages                             g4/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. [HTTP &amp; Networking](/categories/http)
4. /
5. g4/aura-router

ActiveAura-package[HTTP &amp; Networking](/categories/http)

g4/aura-router
==============

The Aura Router package implements web routing; given a URI path and a copy of $\_SERVER, it will extract controller, action, and parameter values for a specific route.

3.3.0(2y ago)013.2k↓33.3%1MITPHP &gt;=5.5.0

Since Nov 28Pushed 2y agoCompare

[ Source](https://github.com/g4code/Aura.Router)[ Packagist](https://packagist.org/packages/g4/aura-router)[ Docs](https://github.com/auraphp/Aura.Router)[ RSS](/packages/g4-aura-router/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (31)Used By (1)

Aura Router
===========

[](#aura-router)

[![Build Status](https://camo.githubusercontent.com/50c728d81dd7621b85d33c3381b34ff10e66d95b062acd212c9c95017f6c870a/68747470733a2f2f7472617669732d63692e6f72672f617572617068702f417572612e526f757465722e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/auraphp/Aura.Router)

Aura Router is a PHP package that implements web routing. Given a URI path and a copy of `$_SERVER`, it will extract controller, action, and parameter values for a specific application route.

Your application foundation or framework is expected to take the information provided by the matching route and dispatch to a controller on its own. As long as your system can provide a URI path string and a representative copy of `$_SERVER`, you can use Aura Router.

Aura Router is inspired by [Solar rewrite rules](http://solarphp.com/manual/dispatch-cycle.rewrite-rules) and .

This package is compliant with [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md), [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), and [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). If you notice compliance oversights, please send a patch via pull request.

Basic Usage
===========

[](#basic-usage)

Instantiation
-------------

[](#instantiation)

The easiest way to instantiate a router is to include the `scripts/instance.php` file:

```
