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 2d 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

2285d 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

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[drupal/core

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

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[friendsoftypo3/content-blocks

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

96374.6k23](/packages/friendsoftypo3-content-blocks)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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