Skip to content
AddHunt
WordPress plugins

ModulesPress

Modular framework for building WordPress plugins

Open source

  • Open source
  • Licence: MIT

In short

ModulesPress is an open-source framework for writing WordPress plugins with a modular, declarative structure inspired by NestJS and Laravel. It is for PHP developers who want dependency injection, type safety and modern front-end tooling in their plugin projects.

What you get

  • NestJS-inspired modular architecture
  • Dependency injection container
  • TypeScript and PHP type support
  • Vite integration with hot module replacement
  • Blade templates
  • CLI that scaffolds new plugins

The details

ModulesPress brings the kind of structure found in NestJS and Laravel to WordPress plugin development. A plugin is organised into modules and declared with modern PHP attributes, starting from a root module that the main plugin class bootstraps.

Getting started

The framework ships with a command-line tool that is installed globally through Composer. Running its new command scaffolds a fresh plugin project ready for development.

What the framework provides

  • A modular architecture modelled on NestJS, with TypeScript and React support for the front end
  • A dependency injection container that makes code easier to test and maintain
  • Type support across both TypeScript and PHP
  • Vite integration with hot module replacement for quick feedback while developing
  • Laravel's Blade engine for templates

Who it suits

ModulesPress is aimed at developers who build larger WordPress plugins and want them to stay maintainable as they grow, and who are comfortable with patterns from modern application frameworks. Documentation, a news section and a Discord community are linked from the site, and the code is published on GitHub under the MIT license. The project is built by Devs Routes.

Alternatives to ModulesPress

All alternatives

Questions

How do I start a new plugin with ModulesPress?

Install the ModulesPress CLI globally with Composer, then run its new command to create a plugin project.

Which tools does it integrate?

Vite for builds with hot module replacement, Laravel's Blade engine for templates, and TypeScript and React for front-end code.

Is ModulesPress free?

Yes. It is open source and published on GitHub under the MIT license.

More like this