2017 © Pedro Peláez
 

library routing

A routing library.

image

air-php/routing

A routing library.

  • Thursday, December 10, 2015
  • by marklocker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 986 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Routing

Build Status Scrutinizer Code Quality, (*1)

The routing library includes classes for handling web application routing., (*2)

Installation

Installation via Composer is recommended., (*3)

"require": {
    "air-php/routing": "dev-master"
}

Route

The Route object represents an application route. It includes:, (*4)

  • A URI
  • The type of request the route handles (e.g. GET, POST etc.)
  • The target controller to instantiate
  • The target controller action to call

Router

The Router object is responsible for routing a request. It's configured with one or more Route objects., (*5)

The route() method takes a Request object (compatible with Air's request interface) and returns a ResolvedRoute. The method itself is abstract, allowing you to use routing logic of your choice., (*6)

ResolvedRequest

A ResolvedRequest object represents a request which has been resolved by a Router object., (*7)

It includes the original Request and Route objects, along with the URI parameters that were matched during routing., (*8)

The Versions

10/12 2015

dev-master

9999999-dev

A routing library.

  Sources   Download

The Requires

 

10/12 2015

v0.1.2

0.1.2.0

A routing library.

  Sources   Download

The Requires

 

23/03 2015

0.1

0.1.0.0

A routing library.

  Sources   Download

The Requires