MageSmith

Magento 2 Module Generator

Scaffold a production-ready Magento 2 module in under a minute.

Magento 2 Module Generator screenshot

What Magento 2 Module Generator does

  • Frontend and adminhtml controllers with routes, ACL, and layouts wired up
  • Block + template scaffolds that match Adobe's Luma / Hyvä conventions
  • Declarative schema (db_schema.xml) with whitelist.json generated alongside
  • events.xml, di.xml, and module.xml stubs populated from your inputs
  • Composer manifest, registration.php, and LICENSE in one download
  • Copy-paste snippets ready for terminal, no ZIP required

How it works

1

Describe the module

Name, vendor, version, and the components you want. The form fills in sensible defaults for every Magento 2 subsystem.

2

Preview the output

Live tree view shows every file before you download. Tweak any field and watch the output update.

3

Ship it

Download the ZIP, drop it into app/code/, run bin/magento setup:upgrade — you're running your own module.

Frequently asked about Magento 2 Module Generator

Which Magento versions does it target? +

Magento Open Source / Adobe Commerce 2.3.x and 2.4.x. Declarative schema is always emitted; InstallSchema/UpgradeSchema scaffolds are not generated because they're deprecated.

Does it generate tests? +

Unit test skeletons for blocks and controllers are included. Integration and API-functional tests are on the roadmap for the Pro tier.

Can I regenerate after edits? +

Yes — keep the form inputs in a project, regenerate whenever you want, diff against your working tree before merging.

Is the output production-ready? +

The scaffolds follow the same shape as MagePsycho's commercial extensions — nothing toy. You'll still want to add your business logic, but the boilerplate is solid.

What's on the Pro tier? +

Advanced components (custom entity types with full EAV, REST/GraphQL API scaffolds, payment-method templates, shipping-method templates, CLI command generators) will roll out on a paid plan. The core generator stays free.

Related tools

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.