opdavies/drupal-module-generator

Generates boilerplate code for Drupal modules.

0.3.1 2020-02-10 09:15 UTC

This package is auto-updated.

Last update: 2022-01-10 13:48:40 UTC


README

A scaffolding tool for generating new modules for Drupal 7 and (soon) 8.

Watch a short demo.

Installation

The Drupal Module Generator is installed via Composer:

composer global require opdavies/drupal-module-generator

Usage

Drupal 7

dmg generate:drupal-7-module {name}

Generated Drupal 7 modules contain the appropriately named .info and .module files, as well as a test case located in src/Tests/Functional which is loaded automatically.