2017 © Pedro Peláez
 

library lpfc-router

A simple router for LPFC

image

phonicavi/lpfc-router

A simple router for LPFC

  • Friday, February 5, 2016
  • by Phonicavi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

LPFC-router

A simple router for Light PHP Framework based on Composer (LPFC), which is under the MIT License, (*1)

install by composer, (*2)

  • Remember to use Route::dispatch(); after all routes registered, (*3)

  • main referrence: NoahBuscher's Macaw, (*4)


Quick Start

Install

  • Install by composer (recommended)

Edit your composer.json, add require like:, (*5)

    "require": {
        "phonicavi/lpfc-router": "dev-master"
    }

then run composer-update under the root directory:, (*6)

composer update, (*7)

All finished.., (*8)

  • Install by code

Please download the file package and unzip it,
move them to ./vendor/phonicavi/lpfc-router/ in which ./ is just the root directory of your PHP works., (*9)

Namespace

add that below in your route-configuration file:, (*10)

use LPFCRouter\Hermes\Route;

since the namespace LPFCRouter\\Hermes\\ defined by lpfc-router, (*11)

Use Method

Since native function __callstatic() used, you can register your routes with simple forms like, (*12)

Route::get() 

or, (*13)

Route::post()  

more details need to be added, (*14)

The Versions

05/02 2016

dev-master

9999999-dev

A simple router for LPFC

  Sources   Download

MIT

The Requires

  • php >=5.5.30

 

by Avatar Phonicavi