freedmo / femtimo
A web application core based on symfony. For building an MVC website, with plugins in the future.
dev-master
2019-02-18 15:36 UTC
Requires
- php: >=5.3.0
- symfony/dependency-injection: ^3.3
- symfony/http-foundation: ^3.3
- symfony/http-kernel: ^3.3
Requires (Dev)
- symfony/var-dumper: ^3.3
This package is auto-updated.
Last update: 2025-02-24 23:02: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(); }