chi-teck / drupal-code-generator
Drupal code generator
Installs: 35 372 832
Dependents: 3
Suggesters: 0
Security: 0
Stars: 260
Watchers: 18
Forks: 52
Open Issues: 17
Requires
- php: >=8.3.0
- ext-json: *
- psr/event-dispatcher: ^1.0
- psr/log: ^3.0
- symfony/console: ^7.1
- symfony/dependency-injection: ^7.1
- symfony/filesystem: ^7.1
- symfony/string: ^7.0
- twig/twig: ^3.4
Requires (Dev)
- ext-simplexml: *
- chi-teck/drupal-coder-extension: ^2.0.0-beta3
- drupal/coder: 8.3.24
- drupal/core: 11.x-dev
- phpspec/prophecy-phpunit: ^2.2
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.9
- symfony/var-dumper: ^7.1
- symfony/yaml: ^7.1
- vimeo/psalm: ^5.24.0
Conflicts
- nikic/php-parser: <4.17
- squizlabs/php_codesniffer: <3.6
- 4.x-dev
- 4.1.0
- 4.0.0
- 4.0.0-RC1
- 4.0.0-alpha2
- 4.0.0-alpha1
- 3.x-dev
- 3.6.1
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.0
- 3.0.0-RC1
- 3.0.0-beta3
- 3.0.0-beta2
- 3.0.0-beta1
- 3.0.0-alpha3
- 3.0.0-alpha2
- 3.0.0-alpha1
- 2.x-dev
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.1
- 2.4.0
- 2.3.x-dev
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 2.0.0-RC3
- 2.0.0-RC2
- 2.0.0-RC1
- 2.0.0-beta6
- 2.0.0-beta5
- 2.0.0-beta4
- 2.0.0-beta3
- 2.0.0-beta2
- 2.0.0-beta1
- 2.0.0-alpha1
- 1.x-dev
- 1.33.1
- 1.33.0
- 1.32.1
- 1.32.0
- 1.31.0
- 1.30.x-dev
- 1.30.5
- 1.30.4
- 1.30.3
- 1.30.2
- 1.30.1
- 1.30.0
- 1.29.2
- 1.29.1
- 1.29.0
- 1.28.1
- 1.28.0
- 1.27.0
- 1.26.3
- 1.26.2
- 1.26.1
- 1.26.0
- 1.25.1
- 1.25.0
- 1.24.0
- 1.23.2
- 1.23.1
- 1.23.0
- 1.22.0
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.4
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.5
- 1.17.4
- 1.17.3
- 1.17.2
- 1.17.1
- 1.17.0
- 1.16.0
- 1.15.1
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.12.0
- 1.11.0
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.1
- 1.9.0
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/composer/phpunit/phpunit-tw-11.2
- dev-dependabot/composer/drupal/coder-8.3.25
- dev-symfony7
- dev-core-tests
- dev-php-parser
- dev-dependabot/add-v2-config-file
This package is auto-updated.
Last update: 2024-12-20 05:18:32 UTC
README
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.