alejandropena / tight
Tight 框架:一个 PHP 框架
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: 2024-09-14 19:58:27 UTC
README
Tight 框架
A PHP 微型框架
安装
使用 composer
$ composer require alejandropena/tight
用法
路由器
包含由 composer 生成的自动加载器以启动应用程序运行
<?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();
文档
更多详情,您可以阅读