chi-teck/drupal-code-generator

Drupal code generator

4.1.0 2024-10-30 18:25 UTC

README

Tests Total Downloads Minimum PHP Version

A command line code generator for Drupal.

Installation

composer require chi-teck/drupal-code-generator --dev

Optionally, generate shell completions for DCG executable.

./vendor/bin/dcg completion bash >> ~/.bash_completion

Usage

# Display navigation.
./vendor/bin/dcg

# Call generator directly.
./vendor/bin/dcg plugin:field:widget

# Generate code non-interactively.
./vendor/bin/dcg config-form -a Example -a example -a SettingsForm -a No

Compatibility

License

GNU General Public License, version 2 or later.