PHPackages                             edisonlabs/merge-yaml - 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. edisonlabs/merge-yaml

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

edisonlabs/merge-yaml
=====================

Provides a composer plugin which merges yaml files.

2.0.0(5y ago)42.0M↑66.9%3[1 issues](https://github.com/EdisonLabs/merge-yaml/issues)1GPL-2.0+PHPCI failing

Since Jul 18Pushed 4mo ago5 watchersCompare

[ Source](https://github.com/EdisonLabs/merge-yaml)[ Packagist](https://packagist.org/packages/edisonlabs/merge-yaml)[ RSS](/packages/edisonlabs-merge-yaml/feed)WikiDiscussions 1.x Synced 2d ago

READMEChangelogDependencies (6)Versions (15)Used By (1)

[![Build Status](https://camo.githubusercontent.com/fabad0983afa4906fe49f53ae6c2b7916e33949e7fe93b9ed705cbcc5be4bb80/68747470733a2f2f7472617669732d63692e636f6d2f456469736f6e4c6162732f6d657267652d79616d6c2e7376673f6272616e63683d312e78)](https://travis-ci.com/EdisonLabs/merge-yaml) [![Coverage Status](https://camo.githubusercontent.com/1e5a4cab78ee1e2bf2319286721e60511b5f327de687866f0039fb751b20ad69/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f456469736f6e4c6162732f6d657267652d79616d6c2f62616467652e7376673f6272616e63683d312e78)](https://coveralls.io/github/EdisonLabs/merge-yaml?branch=1.x)

merge-yaml
==========

[](#merge-yaml)

Overview
--------

[](#overview)

Provides a composer plugin which merges yaml files.

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

[](#installation)

Configure the plugin in your composer.json file using for example:

```
"extra": {
    "merge-yaml": {
        "files": [
            "database.sanitize"
        ],
        "locations": [
            "app/modules",
            "app/profiles"
        ],
        "output-dir": "NOT-PUBLIC-FOLDER"
    }
}

```

Where:

- `files`: List of filenames (without the yml extension) to scan for.
- `locations`: List of paths to scan for yaml files.
- `output-dir`: The directory where the merged files will be placed.

How does it work
----------------

[](#how-does-it-work)

Every time that you run `composer install` or `composer update`, the plugin will scan the locations and merge the yml files to the output directory.

### Command

[](#command)

You can also use the command `composer merge-yaml` to run the merge process.

Use the option `--config` to specify a config.json file to override the config defined in the `composer.json`: `composer merge-yaml --config=config.json`.

The content of the configuration file passed in needs to be in this format:

```
{
    "files": [
        "database.sanitize"
    ],
    "locations": [
        "app/modules",
        "app/profiles"
    ],
    "output-dir": "NOT-PUBLIC-FOLDER"
}

```

Automated Tests and Code Sniffer
--------------------------------

[](#automated-tests-and-code-sniffer)

This repository is integrated with [Travis CI](https://travis-ci.com/EdisonLabs/merge-yaml) to perform tests and detect PHP standards violations.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance47

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 61.4% 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 ~218 days

Recently: every ~309 days

Total

11

Last Release

718d ago

Major Versions

1.0.0 → 2.0.0-alpha12020-05-26

1.x-dev → 2.0.02021-02-23

2.x-dev → 3.0.0-beta12023-03-31

3.x-dev → 4.x-dev2024-07-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1932061?v=4)[Jean Ribeiro](/maintainers/jkribeiro)[@jkribeiro](https://github.com/jkribeiro)

---

Top Contributors

[![manuee](https://avatars.githubusercontent.com/u/105582?v=4)](https://github.com/manuee "manuee (27 commits)")[![jkribeiro](https://avatars.githubusercontent.com/u/1932061?v=4)](https://github.com/jkribeiro "jkribeiro (14 commits)")[![suzymasri](https://avatars.githubusercontent.com/u/12935384?v=4)](https://github.com/suzymasri "suzymasri (2 commits)")[![kmoll](https://avatars.githubusercontent.com/u/4575507?v=4)](https://github.com/kmoll "kmoll (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edisonlabs-merge-yaml/health.svg)

```
[![Health](https://phpackages.com/badges/edisonlabs-merge-yaml/health.svg)](https://phpackages.com/packages/edisonlabs-merge-yaml)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[friendsoftypo3/content-blocks

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

103519.9k53](/packages/friendsoftypo3-content-blocks)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[altis/local-server

Local Server module for Altis

18221.6k3](/packages/altis-local-server)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)

PHPackages © 2026

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