opdavies/drupal-module-generator

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Generates boilerplate code for Drupal modules.

0.3.1 2020-02-10 09:15 UTC

This package is auto-updated.

Last update: 2021-09-10 13:06:09 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.