atijust/fastra

A micro-framework for PHP 5.5+

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

This package is not auto-updated.

Last update: 2024-12-07 19:55:18 UTC


README

Build Status Scrutinizer Code Quality Code Coverage License

A micro-framework for 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();