atijust/fastra

PHP 5.5+ 的微型框架

dev-master 2015-09-20 17:15 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:47:41 UTC


README

Build Status Scrutinizer Code Quality Code Coverage License

PHP5.5+ 的微型框架。

<?php
require_once __DIR__ . '/vendor/autoload.php';

$app = new Fastra\Application();
$app->group(function ($router) {
    $router->get('/{name}', function ($name) {
        return 'Hello, ' . $name;
    });
})->prefix('/hello')->middleware(AuthMiddleware::class);
$app->run();