PHPackages                             dc/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. dc/router

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dc/router
=========

HTTP router

0.1.3(11y ago)1174MITPHPCI failing

Since Oct 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/digitalcreations/router)[ Packagist](https://packagist.org/packages/dc/router)[ Docs](http://github.com/digitalcreations/router)[ RSS](/packages/dc-router/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![DC\Router - Easy HTTP routing](logo.png)](logo.png)

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

[](#installation)

```
$ composer install dc/router

```

Or add it to `composer.json`:

```
"require": {
	"dc/router": "0.*",
    "dc/ioc": "0.*"
}
```

```
$ composer install

```

**This package has a suggests `dc/ioc`, but it really is a very strong recommendation. It will be painful to use without it.**

[![Build status](https://camo.githubusercontent.com/086f1050717b108f8ae2aa3df2b5e7ee6e060cbf58cca0ac834606ae12fc1e45/687474703a2f2f7465616d636974792e6469676974616c6372656174696f6e732e6e6f2f6170702f726573742f6275696c64732f6275696c64547970653a2869643a4463526f757465725f4275696c64292f73746174757349636f6e)](http://teamcity.digitalcreations.no/viewType.html?buildTypeId=DcRouter_Build&guest=1 "Build status")

Getting started
===============

[](#getting-started)

We strongly recommend you use this with [the `dc/ioc` package](http://github.com/digitalcreations/ioc "IoC container for PHP"), which we use in all our samples for easy setup. This makes it easy to set up:

```
