Framework em PHP funcional com views em PHP puro e models com Medoo
composer install phptiny/phptiny
index.php
<?php
require 'vendor/autoload.php';
$cfg=[
'db'=>[
// required
'database_type' => 'mysql',
'database_name' => 'teste',
'server' => 'localhost',
'username' => 'root',
'password' => ''
],
'root'=>'/var/www/html/exemplo',
'showErrors'=>true,
'url'=>'http://public.local',
'localhost'=>'http://localhost/pt'
];
$pt=new PHPTiny\PHPTiny($cfg);
$pt->view('home','world');
?>
view/home.php
<?php
return function($str){
print 'hello '.$str;
};