Stars: 244
Forks: 43
Pull Requests: 56
Issues: 56
Watchers: 13
Last Updated: 2023-09-02 10:54:13
A code generator for Drupal.
License: GNU General Public License v2.0
Languages: PHP, JavaScript, Shell, CSS
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 No
DCG | PHP | Symfony | Twig | Drupal | Drush |
---|---|---|---|---|---|
1 | 7.1 - 7.4 | 3, 4 | 1, 2 | 7, 8 | 9, 10 |
2 | 7.4+ | 4, 5 | 2, 3 | 7, 9 | 11 |
3 | 8.1+ | 6 | 3 | 10 | 12 |
GNU General Public License, version 2 or later.