A scaffolding tool for generating new modules for Drupal 7 and (soon) 8.
Find a file
2020-02-10 09:15:38 +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 Set PHP 7.2 2020-02-10 09:15:38 +00:00
tests Populate more of the test stub 2020-02-09 21:38:57 +00:00
.gitignore Remove composer.lock 2020-02-10 08:48:02 +00:00
.php_cs.dist Add friendsofphp/php-cs-fixer 2020-02-10 08:36:25 +00:00
.travis.yml Add .travis.yml 2020-02-10 08:36:45 +00:00
composer.json Set PHP 7.2 2020-02-10 09:15:38 +00:00
phpunit.xml Ensure that the directory doesn't already exist 2020-02-09 18:51:19 +00:00
README.md Add demo link 2020-02-10 07:28:51 +00:00

Drupal Module Generator (dmg)

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.