nimmneun / nono
The no nonsense php micro framework
0.0.9
2022-02-21 16:23 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ^5
README
<?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();