What is WordPress MVC?
WordPress MVC (WPMVC) is a development framework for building themes and plugins in WordPress.
Unlike any other framework, WordPress MVC is designed to facilitate, standardize and speed up the development process of enterprise-level applications. The implementation of scaffolding, MVC design pattern, dependency injection and other features make this the best and most friendly framework to use for WordPress development.
Before you try it out, make sure your development and production (live) environments have the proper requirements in place.
- Php >= 5.4
First you will need to mount a copy of WordPress in you local web server.
Define what type of application you are going to develop and create a folder for where your project will be located. If it is a Theme it should be located at “wp-content/themes/your-folder-name” and if it is a Plugin it should at “wp-content/plugins/your-folder-name”.
Name your project’s folder in lower case and with no whitespaces, use dashes instead.
Download or clone the latest release of WPMVC into the folder created.
Using your OS command line application of choice, change directory to the project’s folder created previously (where WPMVC was copied or cloned). Type and execute the following command to install WPMVC dependencies and libraries:
Using your OS command line application of choice, change directory to the project’s folder previously created (where WPMVC was copied or cloned). Type and execute the following command to setup you project.
php ayuco setup
A setup wizard (in command line) will walk you through to configure the basics of your project.