34 lines
997 B
Markdown
34 lines
997 B
Markdown
![]() |
# Drupal Code Generator
|
||
|
|
||
|
[](https://github.com/Chi-teck/drupal-code-generator/actions?query=workflow%3ATests)
|
||
|
[](//packagist.org/packages/chi-teck/drupal-code-generator)
|
||
|
[](https://php.net/)
|
||
|
|
||
|
A command line code generator for Drupal.
|
||
|
|
||
|
## Installation
|
||
|
```
|
||
|
composer require chi-teck/drupal-code-generator --dev
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
# 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+|3, 4|1, 2|7, 8|9, 10
|
||
|
2|7.4+|4, 5|2, 3|7, 9|11+
|
||
|
|
||
|
## License
|
||
|
GNU General Public License, version 2 or later.
|