/lightest

A tiny PHP micro framework

Primary LanguagePHP

##Lightest

Lightest is a tiny PHP 'micro framework'. Actually it is just a router.

###Why? Just for fun and learning. I'm a big fan of Slim and I was just curious to see how writing a similar tool can be done and how much time I would need for it.

###How to use Just like Slim if you are familiar with it.

<?php

require 'path/to/Lightest.php';

use Lightest\Lightest;

// Create new app
$app = new Lightest();

// Add route
$app->get('/hello', function () use ($app) {
	echo 'Hello, World!';
});

// Run app
$app->run();

###Notes This is still work in progress. I will add features as I get sparse time. Especially I'm interested in adding the middleware concept at least.