2017 © Pedro Peláez
 

library simplerouter

simple router class

image

anoxgh/simplerouter

simple router class

  • Saturday, May 30, 2015
  • by anox87
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP SimpleRouter

Install

Install via composer:, (*1)

{
    "require": {
        "anoxgh/simplerouter": "dev-master"
    }
}

Run composer install then use as normal:, (*2)

Usage


use AnoxGH\SimpleRouter\Router; Router::get('/', function () { echo "Homepage (GET)"; }); Router::put('/entry/', function () { echo "Create Entry"; }); Router::post('/entry/(:num)', function ($id) { echo "Update Entry:".$id; }); Router::delete('/entry/(:num)', function ($id) { echo 'Delete Entry:' . $id; }); Router::error(function () { echo "404 Error"; }); Router::dispatch();

The Versions

30/05 2015

dev-master

9999999-dev

simple router class

  Sources   Download

GPL-2.0

The Requires

  • php >=5.3.0

 

by Sebastian Gieselmann