Skip to content
Simple PHP Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
.htaccess
LICENSE
README.md
autoload.php
config.php
index.php

README.md

Simple PHP MVC Framework

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!

Install

  1. Download the zip and unpack the files in any folder.
  2. 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]

Some points

  • namespaces
  • templates (change template name in config.php and add a new folder in the template 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

Notes

Special thanks to Jack P. for the simple PHP Router Nanite and you(!), because you've reading my bad english! :)

You can’t perform that action at this time.