Skip to content

danielmccoy/Rocket-Gears-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket Gears Framework

An extremely minimal PHP web framework.

Heavily inspired by the awesome http://www.slimframework.com/ and http://laravel.com/ frameworks.

Requirements

Installing Dependencies

To fetch dependencies into your local project, just run the install command of composer.phar.

$ php composer.phar install

OR

$ composer install

PHPUnit

Run phpunit to check everything is working.

$ php vendor/bin/phpunit

Basic Usage

<?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();

About

An extremely minimal PHP web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages