bell/framework

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

v4.0.0 2021-04-08 19:25 UTC

This package is auto-updated.

Last update: 2024-03-09 02:00:15 UTC


README

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

Instalação

composer install Bell/Bell

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/pb'
];
$bell=new Bell\Bell($cfg);
$bell->view('home','world');
?>

view/home.php

<?php
return function($str){
    print 'hello '.$str;
};