2017 © Pedro Peláez
 

library yarest

Yarest is a RESTful Router Library

image

yarest/yarest

Yarest is a RESTful Router Library

  • Monday, December 9, 2013
  • by IlanFrumer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yarest

Build Status, (*1)

Installaion

Install via composer:, (*2)

composer require yarest/yarest, (*3)

System Requirements

  • PHP >= 5.3.0

Basic usage

Require composer's autoloader, (*4)

require_once 'vendor/autoload.php';, (*5)

Instantiate a Yarest application:, (*6)

$app = new \Yarest\App();, (*7)

Define a route:, (*8)

$route = $app->route('/api/*', 'Api');, (*9)

Define route callbacks:, (*10)

$route->before(function ($resource) {, (*11)

});, (*12)

$route->inject(function ($resource) {, (*13)

});, (*14)

$route->after(function ($resource) {, (*15)

});, (*16)

Dispatch the route:, (*17)

$app->run()->headers()->body();, (*18)

The Versions

09/12 2013

dev-master

9999999-dev http://github.com/ilanfrumer/yarest

Yarest is a RESTful Router Library

  Sources   Download

The Requires

 

by Ilan Frumer

api rest validation router yarest

09/12 2013

dev-develop

dev-develop http://github.com/ilanfrumer/yarest

Yarest is a RESTful Router Library

  Sources   Download

The Requires

 

by Ilan Frumer

api rest validation router yarest