https://github.com/pixelbart/framework
Simple PHP Framework
https://github.com/pixelbart/framework
Last synced: 2 months ago
JSON representation
Simple PHP Framework
- Host: GitHub
- URL: https://github.com/pixelbart/framework
- Owner: pixelbart
- License: mit
- Created: 2016-10-05T12:04:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-19T11:37:32.000Z (over 9 years ago)
- Last Synced: 2025-12-31T16:09:38.156Z (6 months ago)
- Language: PHP
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple PHP MVC Framework
I've used the [Nova Framework](https://github.com/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.
``` php
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](https://github.com/nirix/nanite) and you(!), because you've reading my bad english! :)