Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

stanlemon/aura-micro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

<?php

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

$app->before(function(){
	print "Running before" . PHP_EOL;
});

$app->after(function(){
	print "Running after" . PHP_EOL;;
});

$app->finish(function(){
	print "Running finish" . PHP_EOL;
});

$app->error(function(){
	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;
});

$app->run();

About

Aura Microframework wrapper paralleling the Silex API, sort of

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages