A modern WordPress plugin development framework inspired by NestJS, Angular, and Laravel.
ModulesPress Skeleton provides a robust foundation for building scalable and maintainable WordPress plugins using modern development practices. This template serves as the starting point for your ModulesPress-based plugins.
- π― Modern Architecture - NestJS-inspired modular design
- π TypeScript & React - First-class support for modern frontend
- π οΈ PHP 8+ Attributes - Use decorators for clean, declarative code
- π¦ Dependency Injection - Powerful DI container for better testing
- π Type Safety - Full TypeScript and PHP type support
- β‘ Vite Integration - HMR and modern build tools
- π¨ Blade Templates - Elegant templating with Laravel's Blade
- PHP 8.1 or higher
- WordPress 6.0 or higher
- Node.js 16 or higher
- Composer
-
Install ModulesPress CLI:
composer global require modulespress/cli
-
Create a new plugin:
modulespress new // or mp new
-
Start development:
npm run dev
plugin-name/
βββ .cache/ # Cache storage (views, compiled templates)
βββ artifacts/ # Compiled and packaged plugin versions as zip files
βββ build/ # Compiled Vite assets
βββ resources/ # Source assets requiring compilation
βββ src/ # PHP source code
βββ static/ # Uncompiled/raw assets
βββ vendor/ # Composer dependencies
βββ node_modules/ # NPM dependencies
βββ views/ # Blade template files
βββ plugin.php # Plugin main file
This project is licensed under the MIT License.