PHPackages                             four43/divergence - 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. four43/divergence

ActiveLibrary

four43/divergence
=================

Divergence is a PHP router for creating simple web APIs that can grow with your application by providing more features only when you need them.

16

Since Mar 24Pushed 12y ago2 watchersCompare

[ Source](https://github.com/four43/divergence)[ Packagist](https://packagist.org/packages/four43/divergence)[ RSS](/packages/four43-divergence/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Divergence Router
=================

[](#divergence-router)

A fast router for PHP, as easy, or as full featured as you need it.

Insipred by ToroRouter (), which is a great router to quickly create simple apps. Divergence aims to be almost as simple, but provide more features for larger apps.

Build Status
------------

[](#build-status)

Master: [![Build Status](https://camo.githubusercontent.com/caa8352d537235ab01c52afed6a986a94d45cd659fb70a9bf1b8476198968d66/68747470733a2f2f7472617669732d63692e6f72672f666f757234332f646976657267656e63652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/four43/divergence)

Development: [![Build Status](https://camo.githubusercontent.com/4b18fa9a987500b6e24cd1a526685e6da1feed3bd1556879a6c694200ff4b842/68747470733a2f2f7472617669732d63692e6f72672f666f757234332f646976657267656e63652e7376673f6272616e63683d646576656c6f706d656e74)](https://travis-ci.org/four43/divergence)

Features
--------

[](#features)

- *Simple* - Single file rouder, commented and easy to understand.
- *Debug* - Provided debug handler, add it to your app temporarily to see what callbacks get called when, and with what data.
- *Server Setup* - Use provided server configs (.htaccess for Apache and web.config for IIS) to route all of your requests to your index.php file.

Example
-------

[](#example)

\###Basic

```
