Welcome to FrostSW!

FrostMVC PHP Framework

Documentation   |   Version 1.0.3
FrostMVC is a PHP framework for beginners. A perfect framework to introduce MVC architecture.

FrostMVC provides a simple and easy-to-use structure for building web applications, with the beginners in mind. It is designed to be extremely simple, easy to understand, and yet flexible and modular, targeting developers new to MVC structure. It comes with built-in support for MySQL database access through the Model class and uses Twig for Views templating. Currently, FrostMVC is not under open-source, however it is free to use for personal and commercial web applications.

File Structure

FrostMVC is a framework designed to be simple and easy understand. Unlike other frameworks that contains extensive file system and confusing configuration, FrostMVC consists of the basic file system that can be easily navigated and customised.

Below is the default file system of FrostMVC.

  • /
    • app/
    • assets/
      • css/
      • img/
      • js/
      • index.php
    • core/
    • libraries/
      • helpers/
        • generalHelper.php
      • vendor/
      • composer.json
      • composer.lock
      • TwigExtensions.php
    • .htaccess
    • index.php
    • php.ini
    • README.md
    • robots.txt

app/

This directory is the user space of the framework. This is where the MVC (models, views and controllers) will be placed.
This directory also contains files for routing and website configuration.

To learn more about routing, click here.
You can check the article here for basic website configuration.

controllers/

The Controller serves as the brain of the MVC. It is responsible for how the Views will be presented and how the data will be passed to the Models. Controller basically a class that contains the logics on how the user will interact with your application.

You can read the following article to learn more about Controller of FrostMVC.

On This Page

  • Prerequisites
  • Download
  • Installation
  • Configuration
    • Website Properties
    • Twig Properties
      • Adding global variables in Twig
    • Custom Helpers and Custom Classes
    • CSRF Token Configuration
    • Database Configuration
    • Initiator Methods