Skip to content

freedmo/femtimo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

femtimo

A web framework, build/based on symfony components. It allows developer to build, easy website based on MVC with magic routing.

About current state

todo

  • better configuration, via yaml.
  • seo url for routes
  • remove view part from kernel, and make it avaible throw plugin/component
  • basic doctrine plugin/component to be published

Example index.php

A few changes about configuration are coming soon.

<?php

require_once "vendor/autoload.php";

use femtimo\engine\Kernel;

$application = new Kernel(
"view" /* Folder for view */,
"Project\\Controller\\" /* Namespace from Controller */,
"Project\\Components\\" /* Folder for autoloaded class by DI-Container */,
"Blog" /* Basic controller, which is used as default */,
"show" /* Basic action of basic controller, which is used as default */,
"Component" // Component
);

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();

$response = $application->handle($request);

if($response){
  $responce->send();
}

About

A web application core based on symfony. For building an MVC website, with plugins in the future.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages