PHPackages                             bap72190/composer-importer - 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. bap72190/composer-importer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

bap72190/composer-importer
==========================

Import/update composer file with contrib modules from an outdated site.

1.0.5(4y ago)09PHPPHP &gt;=5.6

Since Jul 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bap72190/composer-importer)[ Packagist](https://packagist.org/packages/bap72190/composer-importer)[ RSS](/packages/bap72190-composer-importer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (7)Used By (0)

Composer Importer
=================

[](#composer-importer)

*Composer Importer* is a Composer plugin that can import all contrib modules from an existing Drupal site already using composer into the composer file. This is useful when the composer file doesn't get used properly and modules end up being installed outside composer.

This project was created based on the work by grasmash/composerize-drupal

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

[](#installation)

```
composer global require bap72190/composer-importer

```

Usage:
------

[](#usage)

```
cd path/to/drupal/project/repo
composer ci --composer-root=[repo-root] --drupal-root=[drupal-root]

```

The `[composer-root]` should be the root directory of your project, where existing composer.json file is located.

The `[drupal-root]` should be the Drupal root, where `index.php` is located.

Options
-------

[](#options)

- `--composer-root`: Specifies the root directory of your project where `composer.json` will be generated. This should be the root of your Git repository, where `.git` is located.
- `--drupal-root`: Specifies the Drupal root directory where `index.php` is located.
- `--no-update`: Prevents `composer update` from being automatically run after `composer.json` is generated.
- `--exact-versions`: Will cause Drupal core and contributed projects (modules, themes, profiles) to be be required with exact verions constraints in `composer.json`, rather than using the default caret operator. E.g., a `drupal/core` would be required as `8.4.4` rather than `^8.4.4`. This prevents projects from being updated. It is not recommended as a long-term solution, but may help you convert to using Composer more easily by reducing the size of the change to your project.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

6

Last Release

1765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1250ad93328c6043601ae7f2e0289ec6335e6ea3fa1ebc50e93b77d4a3f42aef?d=identicon)[bap72190](/maintainers/bap72190)

---

Top Contributors

[![bap72190](https://avatars.githubusercontent.com/u/2914855?v=4)](https://github.com/bap72190 "bap72190 (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bap72190-composer-importer/health.svg)

```
[![Health](https://phpackages.com/badges/bap72190-composer-importer/health.svg)](https://phpackages.com/packages/bap72190-composer-importer)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[drupal/console-extend-plugin

Drupal Console Extend Plugin

13214.3M5](/packages/drupal-console-extend-plugin)[grasmash/composerize-drupal

Convert a non-Composer managed Drupal application into a Composer-managed application.

12819.4k1](/packages/grasmash-composerize-drupal)[friendsoftypo3/content-blocks

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

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

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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