Please note that this project is still a work-in-progress. There are a few bugs and code is sometimes really messy (e.g. autoloader script).
This project allows you to have a simple MVC (Model, View, Controller) structure in PHP.
The BootModule class is responsible for auto loading classes, starting sessions and URL routing. Application settings can be changed in the config.php file.
Controllers are the main components of your application. They bind values to (view)models and render the view. Controllers inherit the base class ControllerBase. They are stored in the /controllers folder and should be named like this: [a-z]controller.php.
Models are stored in the /models folder.
View models are stored in the /viewmodels folder and should be named like this: [a-z]viewmodel.php.
Views are basically what your users see and interact with. They contain HTML tags and JavaScript scripts. Views should not contain any business logic. They are stored in the /views folder and should have the extension .php. Images, CSS and scripts can be stored in /web.
Services contain your website's business logic. Services are stored in the /services folder and should be named like this: [a-z]service.php