A command line code generator for Drupal.
composer require chi-teck/drupal-code-generator --dev
Optionally, generate shell completions for DCG executable.
./vendor/bin/dcg completion bash >> ~/.bash_completion
# 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 NoGNU General Public License, version 2 or later.
