Yet another Micro-framework for PHP.
composer require jabernardo/calf
<?php
require("vendor/autoload.php");
$app = new \Calf\App();
$home = new \Calf\HTTP\Route('/', function($req, $res) {
return $res->write('Hello World!');
});
$app->add($home);
$app->run();
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
php -S localhost:8888 index.php
phpunit
Please see the project's wiki page here.
The calf
is open-sourced software licensed under the MIT license.