Tight Framework: A PHP Framework

v1.2.2 2016-08-30 09:22 UTC

This package is not auto-updated.

Last update: 2024-03-16 17:04:12 UTC


README

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: