2017 © Pedro Peláez
 

library hrouter

Simple PHP router class.

image

hkuan/hrouter

Simple PHP router class.

  • Friday, May 19, 2017
  • by huangyaxiong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HRouter

HRouter is a simple, open source PHP router. It's super small (~150 LOC), fast, and has some great annotated source code. This class allows you to just throw it into your project and start using it immediately., (*1)

Install

If you have Composer, just include Macaw as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory., (*2)

require: {
    "hkuan/hrouter": "dev-master"
}

Examples

First, use the Macaw namespace:, (*3)

use /Hkuan/Hrouter\Router;

Hrouter is not an object, so you can just make direct operations to the class. Here's the Hello World:, (*4)


The Versions

19/05 2017

dev-master

9999999-dev

Simple PHP router class.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

20/04 2017

v1.0.0.x-dev

1.0.0.9999999-dev

Simple PHP router class.

  Sources   Download

MIT

The Requires

  • php >=5.3.3