PHPackages                             kyprss/merge-autoload-dev - 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. kyprss/merge-autoload-dev

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

kyprss/merge-autoload-dev
=========================

Composer plugin to merge autoload-dev settings from local package composer.json to root composer.json

v1.0.0-beta4(10mo ago)22.3k↓92.3%MITPHPPHP ^8.2

Since Aug 11Pushed 10mo agoCompare

[ Source](https://github.com/kyprss/merge-autoload-dev)[ Packagist](https://packagist.org/packages/kyprss/merge-autoload-dev)[ RSS](/packages/kyprss-merge-autoload-dev/feed)WikiDiscussions main Synced 2d ago

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

Merge Autoload Dev
==================

[](#merge-autoload-dev)

A Composer plugin that automatically merges autoload-dev configurations from local packages into the root composer.json.

Why?
----

[](#why)

When working on a monolithic project structured into modules via local Composer packages, the `autoload-dev` settings from sub-packages are not loaded by default. As a result, test helpers inside a module are not automatically available. This plugin merges those configurations so that your test helpers become accessible when running the project's tests.

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

[](#installation)

```
composer require kyprss/merge-autoload-dev --dev
```

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

[](#configuration)

Add the following to your root `composer.json`:

```
{
    "extra": {
        "merge-autoload-dev": {
            "include": [
                "modules/*/composer.json"
            ]
        }
    }
}
```

### Configuration Options

[](#configuration-options)

- **include** (array): Glob patterns for composer.json files to scan and merge

How It Works
------------

[](#how-it-works)

1. The plugin scans all files matching the `include` patterns
2. For each `composer.json` file found, it reads the `autoload-dev` configuration
3. It merges all found autoload-dev configurations into the root project's autoload-dev
4. The merged configuration is automatically applied when running composer commands

Example
-------

[](#example)

Given the following structure:

```
project/
├── composer.json
├── modules/
│   ├── module-a/
│   │   └── composer.json (with autoload-dev)
│   └── module-b/
│       └── composer.json (with autoload-dev)

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance53

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

327d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1622e1867371768b44f8ee8261d60c7dc8039ecba7c1407e3f6a1913044c7693?d=identicon)[kyprss](/maintainers/kyprss)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kyprss-merge-autoload-dev/health.svg)

```
[![Health](https://phpackages.com/badges/kyprss-merge-autoload-dev/health.svg)](https://phpackages.com/packages/kyprss-merge-autoload-dev)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5445.2M565](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)

PHPackages © 2026

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