alejandropena / tight
Tight Framework: A PHP Framework
v1.2.2
2016-08-30 09:22 UTC
Requires
- php: >=5.4.0
- smarty/smarty: ^3.1
Requires (Dev)
- phpunit/phpunit: ^4.0
This package is not auto-updated.
Last update: 2025-01-04 22:03:13 UTC
README
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: