PHPackages                             opdavies/drupal-module-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. opdavies/drupal-module-generator

ActiveProject[Utility &amp; Helpers](/categories/utility)

opdavies/drupal-module-generator
================================

Generates boilerplate code for Drupal modules.

0.3.1(6y ago)02[4 issues](https://github.com/opdavies/drupal-module-generator/issues)MITPHPPHP ^7.2

Since Feb 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/opdavies/drupal-module-generator)[ Packagist](https://packagist.org/packages/opdavies/drupal-module-generator)[ RSS](/packages/opdavies-drupal-module-generator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

Drupal Module Generator (dmg)
=============================

[](#drupal-module-generator-dmg)

A scaffolding tool for generating new modules for Drupal 7 and (soon) 8.

[Watch a short demo](https://opdavi.es/6i3YZ "A short demo video on YouTube").

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

[](#installation)

The Drupal Module Generator is installed via [Composer](https://getcomposer.org):

```
composer global require opdavies/drupal-module-generator
```

Usage
-----

[](#usage)

### Drupal 7

[](#drupal-7)

```
dmg generate:drupal-7-module {name}
```

Generated Drupal 7 modules contain the appropriately named `.info` and `.module` files, as well as a test case located in `src/Tests/Functional` which [is loaded automatically](https://www.oliverdavies.uk/articles/psr4-autoloading-test-cases-drupal-7).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

5

Last Release

2334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/611a0cd6dc77cbf85694f453a614f0d7330afaf758e13e5f37001621cf9d2b87?d=identicon)[opdavies](/maintainers/opdavies)

---

Top Contributors

[![opdavies](https://avatars.githubusercontent.com/u/339813?v=4)](https://github.com/opdavies "opdavies (31 commits)")

---

Tags

drupalphpsymfony-console

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/opdavies-drupal-module-generator/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k52](/packages/friendsoftypo3-content-blocks)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

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

6942.5M415](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M563](/packages/shopware-core)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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