An extremely minimal PHP web framework.
Heavily inspired by the awesome http://www.slimframework.com/ and http://laravel.com/ frameworks.
To fetch dependencies into your local project, just run the install command of composer.phar.
$ php composer.phar installOR
$ composer installRun phpunit to check everything is working.
$ php vendor/bin/phpunit<?php
// Class autoloader
include_once('vendor/autoload.php');
// Initialize framework
$app = new RocketGears\Application();
// Set up route (ie: /daniel)
// Only allow lowercase characters in name parameter
$app->get('/{name}', function($name){
// Route response
echo "Hello {$name}";
})->where('name', '[a-z]+');
// Run app
$app->run();