• This repository has been archived on 28/Mar/2018
  • Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    PHP
  • License
    The Unlicense
  • Created over 12 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A really small php 5 boiler plate

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';
}));