ModulesPress Logo
ModulesPress
Built byDevs Routes

The Framework for Modular and Declarative WordPress Plugins

Build scalable and maintainable WordPress plugins with modern development practices, inspired by NestJS and Laravel.

Quick Installation

# Install ModulesPress CLI globally

composer global require modulespress/cli

# Create a new plugin

modulespress new

Modern Architecture

NestJS-inspired modular design with TypeScript & React support

Dependency Injection

Powerful DI container for better testing and maintainability

Type Safety

Full TypeScript and PHP type support for robust applications

Vite Integration

Modern build tools with Hot Module Replacement (HMR)

Blade Templates

Elegant templating with Laravel's Blade engine

Hot Reloading

Instant feedback during development for faster iterations

Simple and Declarative

Create powerful WordPress plugins with modern PHP attributes and clean architecture

plugin.php
<?php
/*
 * Plugin Name: My Awesome Plugin
 * Version: 1.0.0
 * Description: A powerful WordPress plugin built with ModulesPress
 */

use MyPlugin\Modules\RootModule\RootModule;
use ModulesPress\Foundation\ModulesPressPlugin;

if (!defined('ABSPATH')) exit;

final class MyAwesomePlugin extends ModulesPressPlugin {
    public function __construct() {
        parent::__construct(
            rootModule: RootModule::class,
            rootDir: __DIR__,
            rootFile: __FILE__
        );
    }
}

(new MyAwesomePlugin())->bootstrap();