A scaffolding tool for generating new modules for Drupal 7 and (soon) 8.
Find a file
2020-02-10 07:27:29 +00:00
bin Add application name 2020-02-09 21:40:17 +00:00
fixtures/drupal7_module Populate more of the test stub 2020-02-09 21:38:57 +00:00
src Add D7 aliases 2020-02-09 21:49:52 +00:00
tests Populate more of the test stub 2020-02-09 21:38:57 +00:00
.gitignore Add composer.json 2020-02-09 18:51:19 +00:00
composer.json Support multiple versions of Symfony packages 2020-02-09 21:26:37 +00:00
composer.lock Refactor, use a Collection 2020-02-09 18:51:20 +00:00
phpunit.xml Ensure that the directory doesn't already exist 2020-02-09 18:51:19 +00:00
README.md Add D7 usage instructions 2020-02-10 07:27:29 +00:00

Drupal Module Generator (dmg)

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

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.