drupal-module-generator/README.md

29 lines
711 B
Markdown
Raw Permalink Normal View History

# Drupal Module Generator (dmg)
2020-02-09 18:51:03 +00:00
2020-02-10 07:27:11 +00:00
A scaffolding tool for generating new modules for Drupal 7 and (soon) 8.
2020-02-10 07:28:51 +00:00
[Watch a short demo][demo].
[demo]: https://opdavi.es/6i3YZ 'A short demo video on YouTube'
2020-02-10 07:27:11 +00:00
## Installation
The Drupal Module Generator is installed via [Composer][]:
```bash
composer global require opdavies/drupal-module-generator
```
[composer]: https://getcomposer.org
2020-02-09 18:51:03 +00:00
## Usage
2020-02-10 07:27:29 +00:00
### Drupal 7
```bash
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](https://www.oliverdavies.uk/articles/psr4-autoloading-test-cases-drupal-7).