Skip to content

pixelbart/framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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! :)

About

Simple PHP Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published