Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chi-teck/drupal-code-generator
A code generator for Drupal.
https://github.com/chi-teck/drupal-code-generator
cli code-generator drupal php symfony-console
Last synced: 6 days ago
JSON representation
A code generator for Drupal.
- Host: GitHub
- URL: https://github.com/chi-teck/drupal-code-generator
- Owner: Chi-teck
- License: gpl-2.0
- Created: 2015-01-05T11:43:26.000Z (about 10 years ago)
- Default Branch: 4.x
- Last Pushed: 2024-12-31T11:20:25.000Z (8 days ago)
- Last Synced: 2025-01-02T07:04:43.228Z (6 days ago)
- Topics: cli, code-generator, drupal, php, symfony-console
- Language: PHP
- Homepage:
- Size: 4.76 MB
- Stars: 260
- Watchers: 18
- Forks: 52
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Drupal Code Generator
[![Tests](https://github.com/Chi-teck/drupal-code-generator/workflows/Tests/badge.svg)](https://github.com/Chi-teck/drupal-code-generator/actions?query=workflow%3ATests)
[![Total Downloads](https://poser.pugx.org/chi-teck/drupal-code-generator/downloads)](//packagist.org/packages/chi-teck/drupal-code-generator)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg?style=flat)](https://php.net/)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
```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 - 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.