I've used the Nova Framework for an long time, to build simple and small web applications - but Nova is now to big. So i build a simple, easy and unsecure(?) solution for me. Without awesome autoloading, without awesome special features. Just working for simple and easy web applications or apis.
PHP Newbie -> you are right here! It's not to difficult to understand the code.
PHP PRO -> go away! Just leave this place OR give some feedback and share your knowledge!
- Download the zip and unpack the files in any folder.
- Now define in the
config.php
all empty variables (are marked with a comment behind) and just start programming.
If you use the "Framework" in a subfolder just change the RewriteBase
in the .htaccess
file.
RewriteEngine On
RewriteBase / # <- HERE!
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
- namespaces
- templates (change template name in
config.php
and add a new folder in thetemplate folder
) - Simple MVC
- Core Model builds an mysqli connection (better solution? Just pull an request or write with me!)
- I've started a simple formbuilder (app/Helpers/FormBuilder.php) just for fun
Special thanks to Jack P. for the simple PHP Router Nanite and you(!), because you've reading my bad english! :)