edisonlabs / merge-yaml
Provides a composer plugin which merges yaml files.
Installs: 1 908 502
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 4
Open Issues: 1
Type:composer-plugin
pkg:composer/edisonlabs/merge-yaml
Requires
- composer-plugin-api: ^2.0
- symfony/finder: ^6
- symfony/yaml: ^6
Requires (Dev)
- composer/composer: ^2
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^8.4.1
This package is auto-updated.
Last update: 2025-10-15 16:02:15 UTC
README
merge-yaml
Overview
Provides a composer plugin which merges yaml files.
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
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
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
This repository is integrated with Travis CI to perform tests and detect PHP standards violations.