Awesome Open Source
Awesome Open Source

Drupal Code Generator

Tests Total Downloads Minimum PHP Version

A command line code generator for Drupal.


  1. Download the latest stable release of the code generator.
  2. Make the file executable.
  3. Move it to a directory that is part of your PATH.

Installation using Composer is also supported.


Simply repeat installation commands.


# Display navigation.

# Call generator directly.
dcg plugin:field:widget

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


DCG PHP Symfony Twig Drupal Drush
1 7.1+ 3, 4 1, 2 7, 8 9+
2 7.3+ 4, 5 2, 3 7, 9


GNU General Public License, version 2 or later.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
php (15,946
cli (1,686
code-generator (105
drupal (70

Find Open Source By Browsing 7,000 Topics Across 59 Categories