freedmo/femtimo

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

Maintainers

Details

github.com/freedmo/femtimo

Source

Installs: 58

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:project

dev-master 2019-02-18 15:36 UTC

This package is auto-updated.

Last update: 2024-04-24 21:12:06 UTC


README

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