This repository has been archived by the owner. It is now read-only.
A really small php 5 boiler plate
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
public removed database, added composer Mar 1, 2016
system removed database, added composer Mar 1, 2016
vendor added more tests, updated Input, URI classes Jun 23, 2013
.gitignore removed database, added composer Mar 1, 2016
composer.json
readme.md updated readme Mar 1, 2016
unlicense.txt updated readme added unlicense Jun 27, 2012

readme.md

Nano

Nano size PHP 5.3.6+ framework

Hello world

app/routes.php

Route::get('/', function() {
	return 'Hello world';
});

Hooks before and after

Route::action('auth', function() {
	if(Auth::guest()) return Response::redirect('login');
});

Route::get('/', array('before' => 'auth', 'main' => function() {
	return 'Hello world';
}));