bin | ||
fixtures/drupal7_module | ||
src | ||
tests | ||
.gitignore | ||
.php_cs.dist | ||
.travis.yml | ||
composer.json | ||
phpunit.xml | ||
README.md |
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.