PHPackages                             chi-teck/drupal-code-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. chi-teck/drupal-code-generator

ActiveLibrary[CLI &amp; Console](/categories/cli)

chi-teck/drupal-code-generator
==============================

Drupal code generator

4.2.0(1y ago)26849.9M↓37.4%56[23 issues](https://github.com/Chi-teck/drupal-code-generator/issues)[6 PRs](https://github.com/Chi-teck/drupal-code-generator/pulls)4GPL-2.0-or-laterPHPPHP &gt;=8.3.0CI failing

Since Apr 5Pushed 2mo ago15 watchersCompare

[ Source](https://github.com/Chi-teck/drupal-code-generator)[ Packagist](https://packagist.org/packages/chi-teck/drupal-code-generator)[ RSS](/packages/chi-teck-drupal-code-generator/feed)WikiDiscussions 4.x Synced 1w ago

READMEChangelog (10)Dependencies (16)Versions (136)Used By (4)

Drupal Code Generator
=====================

[](#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://camo.githubusercontent.com/d88222bb061d25150be47d5d49921bf777fd8906b49693c449202280cee5ee9b/68747470733a2f2f706f7365722e707567782e6f72672f6368692d7465636b2f64727570616c2d636f64652d67656e657261746f722f646f776e6c6f616473)](//packagist.org/packages/chi-teck/drupal-code-generator)[![Minimum PHP Version](https://camo.githubusercontent.com/d77d1f4d55742ac9683383709394d487ba9d0ca25316ddf4c0e6a7d9c54433da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d3838393242462e7376673f7374796c653d666c6174)](https://php.net/)

A command line code generator for Drupal.

Installation
------------

[](#installation)

```
composer require chi-teck/drupal-code-generator --dev

```

Optionally, generate shell completions for DCG executable.

```
./vendor/bin/dcg completion bash >> ~/.bash_completion

```

Usage
-----

[](#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
-------------

[](#compatibility)

DCGPHPSymfonyTwigDrupalDrush17.1 - 7.43, 41, 27, 89, 1027.4+4, 52, 37, 91138.1+63101248.3+731113License
-------

[](#license)

GNU General Public License, version 2 or later.

###  Health Score

72

—

ExcellentBetter than 100% of packages

Maintenance68

Regular maintenance activity

Popularity70

Solid adoption and visibility

Community36

Small or concentrated contributor base

Maturity96

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~162 days

Total

127

Last Release

72d ago

Major Versions

1.x-dev → 2.1.02021-10-10

2.5.3 → 3.0.0-alpha12022-06-21

2.6.2 → 3.0.0-beta22022-11-14

3.6.0 → 4.0.0-alpha12024-05-20

3.6.1 → 4.0.0-RC12024-06-19

PHP version history (8 changes)1.0.1PHP &gt;=5.4.5

1.9.0PHP &gt;=5.5.9

2.0.0-alpha1PHP &gt;=7.1.0

2.0.0-beta5PHP &gt;=7.2.3

2.0.0-beta6PHP &gt;=7.3

2.1.0PHP &gt;=7.4

3.0.0-alpha1PHP &gt;=8.1.0

4.0.0-alpha1PHP &gt;=8.3.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673139?v=4)[Ivan](/maintainers/chi-teck)[@Chi-teck](https://github.com/Chi-teck)

---

Top Contributors

[![Chi-teck](https://avatars.githubusercontent.com/u/673139?v=4)](https://github.com/Chi-teck "Chi-teck (2411 commits)")[![chesn0k](https://avatars.githubusercontent.com/u/47413612?v=4)](https://github.com/chesn0k "chesn0k (73 commits)")[![chx](https://avatars.githubusercontent.com/u/193045?v=4)](https://github.com/chx "chx (35 commits)")[![weitzman](https://avatars.githubusercontent.com/u/7740?v=4)](https://github.com/weitzman "weitzman (24 commits)")[![PierrePaul](https://avatars.githubusercontent.com/u/149291?v=4)](https://github.com/PierrePaul "PierrePaul (18 commits)")[![Niklan](https://avatars.githubusercontent.com/u/2356744?v=4)](https://github.com/Niklan "Niklan (17 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (5 commits)")[![sanduhrs](https://avatars.githubusercontent.com/u/107764?v=4)](https://github.com/sanduhrs "sanduhrs (3 commits)")[![el7cosmos](https://avatars.githubusercontent.com/u/284115?v=4)](https://github.com/el7cosmos "el7cosmos (2 commits)")[![andypost](https://avatars.githubusercontent.com/u/73713?v=4)](https://github.com/andypost "andypost (2 commits)")[![znerol](https://avatars.githubusercontent.com/u/23288?v=4)](https://github.com/znerol "znerol (2 commits)")[![bhanu951](https://avatars.githubusercontent.com/u/8525040?v=4)](https://github.com/bhanu951 "bhanu951 (1 commits)")[![rpayanm](https://avatars.githubusercontent.com/u/6087454?v=4)](https://github.com/rpayanm "rpayanm (1 commits)")[![stefan-korn](https://avatars.githubusercontent.com/u/3440033?v=4)](https://github.com/stefan-korn "stefan-korn (1 commits)")[![pfrenssen](https://avatars.githubusercontent.com/u/442924?v=4)](https://github.com/pfrenssen "pfrenssen (1 commits)")[![larowlan](https://avatars.githubusercontent.com/u/555254?v=4)](https://github.com/larowlan "larowlan (1 commits)")[![mfb](https://avatars.githubusercontent.com/u/3278?v=4)](https://github.com/mfb "mfb (1 commits)")[![PetersRicardo](https://avatars.githubusercontent.com/u/16288165?v=4)](https://github.com/PetersRicardo "PetersRicardo (1 commits)")

---

Tags

clicode-generatordrupalphpsymfony-console

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chi-teck-drupal-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/chi-teck-drupal-code-generator/health.svg)](https://phpackages.com/packages/chi-teck-drupal-code-generator)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M395](/packages/drupal-core-recommended)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M370](/packages/easycorp-easyadmin-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
