Mvc Plugin Boilerplate For Wordpress

screenshot of Mvc Plugin Boilerplate For Wordpress

An MVC WordPress Plugin Boilerplate with clear separation of concerns. Will make your experience of creating a WordPress Plugin enjoyable!

Overview

The MVC Plugin Boilerplate for WordPress is designed to help plugin developers achieve the Model-View-Controller (MVC) design pattern in their coding. While WordPress itself is an event-driven system, following the MVC architecture can be challenging when creating plugins. This boilerplate separates concerns by allowing developers to write individual models, views, and controllers. It also delegates the task of loading controllers and models to the router, so that they can focus on their specific functionalities. This boilerplate is meant to be a starting point for creating plugins in an MVC way, without any extra features or a steep learning curve.

Features

  • Separate concerns: Developers can write individual models, views, and controllers.
  • Delegated loading: The router handles the loading of controllers and models, so they can focus on their specific tasks.
  • No ORM: The boilerplate does not include an Object-Relational Mapping (ORM) system.
  • No extra features: It only includes the features necessary to build a plugin using MVC architecture.
  • Simple installation: The boilerplate can be directly installed into the plugins folder.

Summary

The MVC Plugin Boilerplate for WordPress is a helpful tool for plugin developers who want to follow the MVC design pattern in their coding. It allows for the separation of concerns by providing individual models, views, and controllers. By delegating the task of loading controllers and models to the router, developers can focus on their specific functionalities. With a simple installation process and no extra features, this boilerplate provides a solid foundation for building plugins in an MVC way.