Skip to Content
🎉 WpMVC 2.0 is released! Now compatible with PHP 7.4 to 8.5. Read the guide →
DocumentationArchitecture ConceptsOverview

Architecture Concepts

WpMVC is a robust, service-oriented framework architected to bring modern software engineering patterns to the WordPress ecosystem. Heavily inspired by industry-leading frameworks like Laravel, WpMVC implements a decoupled Model-View-Controller (MVC) architecture that emphasizes scalability, maintainability, and developer velocity.


Core Engineering Pillars

Inversion of Control (IoC)

The framework’s foundation is a centralized Service Container. It manages the instantiation and life cycle of all core services through dependency injection and auto-wiring.

Service Orchestration

Initialization is managed through Service Providers. These classes encapsulate the logic for bootstrapping various domains of the application, keeping the entry point clean and modular.

Dependency Isolation (PHPScoper)

WpMVC utilizes humbug/php-scoper to ensure your plugin is entirely conflict-free. All Composer dependencies are uniquely prefixed per-plugin, preventing “Dependency Hell” when other plugins load different versions of the same library.


Project Structure

Our file system adheres to PSR-4 standards, ensuring predictable class loading and a logical separation of concerns.

  • artisan
  • composer.json
  • plugin.php
  • webpack.config.js
Last updated on