Skip to content

znerol-forks/drupal-code-generator

 
 

Repository files navigation

Drupal Code Generator

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

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
4 8.3+ 7 3 11 13

License

GNU General Public License, version 2 or later.

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.5%
  • Shell 2.3%
  • Other 0.2%