PHPackages                             rawphp/raw-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. [Framework](/categories/framework)
4. /
5. rawphp/raw-router

ActiveLibrary[Framework](/categories/framework)

rawphp/raw-router
=================

RawRouter is a simple router used by RawPHP framework and other applications.

0323PHP

Since Dec 22Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rawphp/RawRouter)[ Packagist](https://packagist.org/packages/rawphp/raw-router)[ RSS](/packages/rawphp-raw-router/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

RawRouter - A Simple Routing Service for MVC PHP Applications
=============================================================

[](#rawrouter---a-simple-routing-service-for-mvc-php-applications)

[![Build Status](https://camo.githubusercontent.com/b70f528a58cca8f50c2c6f2711f77dcc094c8fd3e0825806b5bc71654ef0c150/68747470733a2f2f7472617669732d63692e6f72672f7261777068702f526177526f757465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rawphp/RawRouter) [![Coverage Status](https://camo.githubusercontent.com/09d34d28b29be796ac4afff4487226aaa0343f1a3dea652e4aef5e4c7c4b9eda/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7261777068702f526177526f757465722f62616467652e706e67)](https://coveralls.io/r/rawphp/RawRouter)[![Latest Stable Version](https://camo.githubusercontent.com/fba991357b7f48f62574a98b1d0b163d107921f39c426b6188e9d93e2dbae777/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726f757465722f762f737461626c652e737667)](https://packagist.org/packages/rawphp/raw-router) [![Total Downloads](https://camo.githubusercontent.com/626cc90b143e38efec74b9e34c210515f77da6682b2a7d33e0afc55e0eb00254/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726f757465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/rawphp/raw-router)[![Latest Unstable Version](https://camo.githubusercontent.com/7e6539b4ccf57f497940d610bca6a2bb91bef1092346f36cebc2a6c00d184103/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726f757465722f762f756e737461626c652e737667)](https://packagist.org/packages/rawphp/raw-router) [![License](https://camo.githubusercontent.com/8d0d61d300e7e55f1e9a7e90df1b20e561f727bfe1b6f812fed2efc511c60ad6/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d726f757465722f6c6963656e73652e737667)](https://packagist.org/packages/rawphp/raw-router)

[![SensioLabsInsight](https://camo.githubusercontent.com/e411b4f4565b31dc9e3e5994a505532f0c33fedb392da3d36d1678d893e55071/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65656634363261362d356635632d346631392d616239332d6635623439626366313131372f6269672e706e67)](https://insight.sensiolabs.com/projects/eef462a6-5f5c-4f19-ab93-f5b49bcf1117)

Package Features
----------------

[](#package-features)

- Simple to use router
- MVC style routing

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

[](#installation)

### Composer

[](#composer)

RawRouter is available via [Composer/Packagist](https://packagist.org/packages/rawphp/raw-router).

Add `"rawphp/raw-router": "0.*@dev"` to the require block in your composer.json and then run `composer install`.

```
{
        "require": {
            "rawphp/raw-router": "0.*@dev"
        }
}
```

You can also simply run the following from the command line:

```
composer require rawphp/raw-router "0.*@dev"
```

### Tarball

[](#tarball)

Alternatively, just copy the contents of the RawRouter folder into somewhere that's in your PHP `include_path` setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.

Basic Usage
-----------

[](#basic-usage)

```
