Skip to content

phptiny/phptiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPTiny

Framework em PHP funcional com views em PHP puro e models com Medoo

Instalação

composer install phptiny/phptiny

Hello world

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;
};

About

Framework em PHP funcional com views em PHP puro e models com Medoo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages