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-11-09 19:28:03 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();