MV – light PHP framework with Admin Panel

  • Website content management with CMF
  • Object-oriented approach and MVC principles
  • Auto-generated Admin Panel
  • ORM and ready-to-use functional blocks (sorting, filtering, etc.)
  • Visual editor, images bulk upload and much more

Quick review

Work process starts with creation of Model - PHP class for managing SQL table. Fields of the model have different data types based on principles of web development.

class Articles extends Model
{
    protected $name = "Articles";

    protected $model_elements = array(
        array("Activation", "bool", "active", array("on_create" => true)),
        array("Name", "char", "name", array("required" => true)),
        array("Date", "date", "date", array("required" => true)),
        array("Content", "text", "content", array("rich_text" => true)),
        array("Images", "multi_images", "images")
    );
}

After PHP class and SQL table are ready, an interface becomes available in Admin Panel. You can create, edit, delete records, and also you will get a sidebar with filters to help you search particular records in long data list.


Selecting of template for requested URL is accomplished by Routing.

"article/*/" => "view-article.php"

To show model's data on the webpage a template file is being created.

<div id="inner">
    <p class="date"><? echo I18n :: formatDate($article -> date); ?></p>
    <h1><? echo $article -> name; ?></h1>
    <div class="text">
        <? echo $article -> content; ?>
    </div>
    <div class="gallery">
        <? echo $mv -> articles -> displayGallery($article -> images); ?>
    </div>
</div>

In MV framework templates generation is made by PHP itself to guarantee high speed of template processing and page generation. Record object based on ORM principles helps to link model's functions with template of a web page.

Main idea of MV is to provide a simplified and faster way to create websites and applications with the help of built-in CMF that allows to manage content in Admin Panel.