smrtr / HaltoRouter

A small but powerful routing class for PHP 5.3+. It's dynamic, lightning-fast and dead easy to use.

Home Page:http://resources.smrtr.co.uk/haltorouter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HaltoRouter is a small but powerful routing class for PHP 5.3+. HaltoRouter is a hard fork of AltoRouter with the basepath functionality stripped out and hostgroup functionality baked in.

  • Dynamic routing with named parameters
  • Reversed routing (url generation)
  • Host matching via flexible hostgroups
  • Flexible regular expression routing (inspired by Sinatra)

Tutorial

  1. Overview, installation & getting started
  2. Constructing routes
  1. Handling requests
  2. Generating URLs

There are usage examples in the tests.

About

A small but powerful routing class for PHP 5.3+. It's dynamic, lightning-fast and dead easy to use.

http://resources.smrtr.co.uk/haltorouter

License:MIT License


Languages

Language:PHP 100.0%