PHPackages                             nmangold/composer-remedy - 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. nmangold/composer-remedy

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

nmangold/composer-remedy
========================

A Composer plugin to automatically detect and resolve dependency conflicts, with a focus on Drupal projects.

01PHPCI passing

Since Apr 15Pushed 3mo agoCompare

[ Source](https://github.com/nmangold/composer-remedy)[ Packagist](https://packagist.org/packages/nmangold/composer-remedy)[ RSS](/packages/nmangold-composer-remedy/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer Remedy
===============

[](#composer-remedy)

A production-quality Composer plugin that automatically detects and resolves dependency conflicts, with a strong focus on Drupal projects.

🎯 Features
----------

[](#-features)

- **Programmatic Conflict Analysis**: Uses Composer's internal solver to detect conflicts accurately.
- **Dependency Graph Building**: Maps out the relationships between conflicting packages.
- **Minimal Resolution Planning**: Computes the smallest set of version changes required to fix conflicts.
- **Risk Assessment**: Classifies the risk level of suggested changes (LOW, MEDIUM, HIGH, EXTREME).
- **Drupal Integration**: Specific rules for `drupal/core` and `drupal/core-recommended`.
- **Dry-run and Auto-apply**: See the plan or apply it automatically.

📦 Installation
--------------

[](#-installation)

```
composer require nmangold/composer-remedy
```

⚙️ Usage
--------

[](#️-usage)

When you encounter a dependency conflict, run:

```
composer drupal:fix-conflicts
```

### Options

[](#options)

- `--dry-run`: Show the resolution plan without making any changes.
- `--apply`: Automatically execute `composer require` with the computed version fixes.

🛠 Architecture
--------------

[](#-architecture)

The plugin follows SOLID principles and uses a service-oriented architecture:

- `ConflictAnalyzer`: Triggers a simulated update to capture `SolverProblemsException`.
- `DependencyGraphBuilder`: Constructs a graph of involved packages.
- `ResolutionPlanner`: Iteratively relaxes constraints to find a valid resolution.
- `RiskAnalyzer`: Evaluates the impact of version bumps.
- `DrupalAnalyzer`: Applies Drupal-specific logic for core and modules.

🧪 Testing
---------

[](#-testing)

Run the test suite with PHPUnit:

```
vendor/bin/phpunit
```

🛡 License
---------

[](#-license)

This project is licensed under the MIT License.

###  Health Score

18

—

LowBetter than 7% of packages

Maintenance54

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11726826?v=4)[nmangold](/maintainers/nmangold)[@nmangold](https://github.com/nmangold)

---

Top Contributors

[![nmangold](https://avatars.githubusercontent.com/u/11726826?v=4)](https://github.com/nmangold "nmangold (2 commits)")

### Embed Badge

![Health badge](/badges/nmangold-composer-remedy/health.svg)

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

###  Alternatives

[liagkos/vatidinfo

Retrieve greek business iformation from tax registry

175.0k](/packages/liagkos-vatidinfo)

PHPackages © 2026

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