Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 820 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 820 Bytes

nono

Build Status Scrutinizer Code Quality Code Coverage

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

// instantiate new app
$app = new \Nono\Application();

// add route with controller::method action
$app->post('/profile', 'ProfileController::create');

// or using a closure as action
$app->get('/{name}?', function ($request, $name = 'World') {
    echo "Hello {$name}!";
});

// run app and generate output
$app->respond();