Skip to content

AlejandroPF/tight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality License

Tight Framework

A PHP micro-framework

Instalation

Using composer

$ composer require alejandropena/tight

Usage

Router

Include the autoloader generated by composer to start running the app

<?php
require_once 'vendor/autoload.php';
$config = [
    "basePath"=>__DIR__ // Set current directory as base path
];
$app = new Tight\Tight($config);
$router = $app->getRouter();

$router->get("/hello/:who",function($who){
    echo "Hello ".$who;
});
$router->run();

Documentation

For more info you can read: