Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (25 sloc) 784 Bytes

Aura Micro Framework

This is a simple Micro Framework implementation using Aura.Router. It is designed to model the API exposed by Silex\Application. It does not fully match the Silex API and there is no concept of service providers.

Example usage

Basic micro-framework implementation


$app = new Aura\Micro\Micro();

    print "Running before" . PHP_EOL;

    print "Running after" . PHP_EOL;;

    print "Running finish" . PHP_EOL;

    print "Error" . PHP_EOL;

$app->get("/test", function(){
    print "Testing" . PHP_EOL;

$app->get("/hello/{:world}", function($world) use($app){
    print "Hello {$world}" . PHP_EOL;

Something went wrong with that request. Please try again.