Skip to content

vahitserifsaglam1/MyfcFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyfcFramework

Myfc Framework MVC yapısı üzerine kurulmuş, küçük, fakat hızlı ve etkili bir frameworkdur.

Çoklu Dil Desteği

Smarty ve Twig template engine desteği

MVC yapısı

Konsol uygulaması

Güçlü sınıflar

Kolay kurulum

gibi özellikleri barındırmaktadır

Kurulum

İndirdiğiniz dosyayı sunucunuza attıkdan sonra app/Configs/Configs.php ve app/Configs/databaseConfigs.php dosyalarını sunucunuzun özelliklerine göre düzenlemeniz yeterlidir

Örnek Rötalama

Route::get('/', function(){ echo "hello wordl"; }); // Örnek bir rötalama sistemi

Örnek Veritabanı sorgusu (user tablosunda username i admin'e eşit olanın bilgileri çeker)

user::where('username','admin') // örnek bir veritabanı sorgusu

Örnek View oluşturma sistemi(seçtiğiniz template engine'e göre [ 'smarty' ise index.tpl, 'twig' ise index.twig.php , 'php' ise index.php dosyasını çeker)

view('index', array('param' => 'value')) || View::make('index', array('param' => 'value') // örnek view oluşturma kodları

Örnek Http Request

use Myfc\Facade\Request; $request = Request::get('http://www.ornekdomain.com');

Örnek Sayfalama

$pagination = $db->pagination('index/sayfa/{sayfa}'); echo $pagination;

About

Myfc Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published