PHPackages                             droath/drupal-module-installer - 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. droath/drupal-module-installer

ActiveComposer-plugin[CLI &amp; Console](/categories/cli)

droath/drupal-module-installer
==============================

Install or uninstall Drupal modules based on composer operations.

1.0.0(9y ago)1853[1 issues](https://github.com/droath/drupal-module-installer/issues)MITPHPPHP &gt;=5.4

Since Sep 27Pushed 9y agoCompare

[ Source](https://github.com/droath/drupal-module-installer)[ Packagist](https://packagist.org/packages/droath/drupal-module-installer)[ Docs](https://github.com/droath/drupal-module-installer)[ RSS](/packages/droath-drupal-module-installer/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Drupal Module Installer
=======================

[](#drupal-module-installer)

This project is a composer plugin that integrates Drupal command-line tools (drush, drupal console) with composer. When installing or uninstalling Drupal module(s) using composer you had to manually install/uninstall the module(s) independently.

With this plugin installed composer will execute drush or drupal console commands based on the operation being performed, which leads to a more seamless development workflow.

Usage
-----

[](#usage)

Run `composer require droath/drupal-module-installer:dev-master` in your composer project.

Once installed you'll get a prompt when installing or uninstalling Drupal modules using composer. It will ask you if you would like to install/uninstall (based on the operation being performed) the newly added module.

Configuration
-------------

[](#configuration)

The default binary that will be used is `drush`. You can define a binary that you would like to use when executing commands in the `extra` block in the composer.json.

```
"extra": {
    "drupal-module-installer": {
        "binary": "drush",
        "drupal_root": "[DRUPAL_ROOT_RELATIVE_PATH]"
    }
}
```

**Extra Options:**

- The `binary` option allows the following:
    - drush
    - drupal
- (Optional) The `drupal_root` option allows a relative path to the Drupal project. The script attempts to find the Drupal root itself, the path defined here will be used if it's unable to find it.

Contributing
------------

[](#contributing)

Feel free to hack on this project. Please submit PRs or feature/bug issues on the GitHub project.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3564d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/371104?v=4)[Travis Tomka](/maintainers/droath)[@droath](https://github.com/droath)

---

Top Contributors

[![droath](https://avatars.githubusercontent.com/u/371104?v=4)](https://github.com/droath "droath (9 commits)")

---

Tags

consoledrupalinstallermoduleDrush

### Embed Badge

![Health badge](/badges/droath-drupal-module-installer/health.svg)

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

###  Alternatives

[drupal/console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.

93315.1M161](/packages/drupal-console)[drupal/console-core

Drupal Console Core

13614.7M12](/packages/drupal-console-core)[drupal/console-en

Drupal Console English Language

12614.7M4](/packages/drupal-console-en)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M196](/packages/drupal-core-project-message)[jigarius/drall

Drall is a command-line utility to run drush on multi-site Drupal installations.

36115.5k](/packages/jigarius-drall)[kevinquillen/recipe-generator

Adds Drush command(s) to help generate Recipes for Drupal.

1417.5k5](/packages/kevinquillen-recipe-generator)

PHPackages © 2026

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