dev-module-create
Create and register a new Magento 2 module with customizable components including blocks, helpers, models, and setup files for extending e-commerce functionality.
Instructions
Create and register a new Magento 2 module
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addAll | No | Add blocks, helpers and models | |
addBlocks | No | Add blocks | |
addComposer | No | Add a composer.json file to generated module | |
addHelpers | No | Add helpers | |
addModels | No | Add models | |
addReadme | No | Add a readme.md file to generated module | |
addSetup | No | Add SQL setup | |
addStrictTypes | No | Add strict_types declaration to generated PHP files | |
authorEmail | No | Author email for readme.md or composer.json | |
authorName | No | Author for readme.md or composer.json | |
description | No | Description for readme.md or composer.json | |
enable | No | Enable module after creation | |
minimal | No | Create only module file | |
modman | No | Create all files in folder with a modman file | |
moduleName | Yes | Name of your module | |
vendorNamespace | Yes | Namespace (your company prefix) |
Input Schema (JSON Schema)
{
"properties": {
"addAll": {
"description": "Add blocks, helpers and models",
"type": "boolean"
},
"addBlocks": {
"description": "Add blocks",
"type": "boolean"
},
"addComposer": {
"description": "Add a composer.json file to generated module",
"type": "boolean"
},
"addHelpers": {
"description": "Add helpers",
"type": "boolean"
},
"addModels": {
"description": "Add models",
"type": "boolean"
},
"addReadme": {
"description": "Add a readme.md file to generated module",
"type": "boolean"
},
"addSetup": {
"description": "Add SQL setup",
"type": "boolean"
},
"addStrictTypes": {
"description": "Add strict_types declaration to generated PHP files",
"type": "boolean"
},
"authorEmail": {
"description": "Author email for readme.md or composer.json",
"type": "string"
},
"authorName": {
"description": "Author for readme.md or composer.json",
"type": "string"
},
"description": {
"description": "Description for readme.md or composer.json",
"type": "string"
},
"enable": {
"description": "Enable module after creation",
"type": "boolean"
},
"minimal": {
"description": "Create only module file",
"type": "boolean"
},
"modman": {
"description": "Create all files in folder with a modman file",
"type": "boolean"
},
"moduleName": {
"description": "Name of your module",
"type": "string"
},
"vendorNamespace": {
"description": "Namespace (your company prefix)",
"type": "string"
}
},
"required": [
"vendorNamespace",
"moduleName"
],
"type": "object"
}