Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/becklyn/yamlparameters
Composer script handling the dist parameters file.
https://github.com/becklyn/yamlparameters
composer php
Last synced: about 2 months ago
JSON representation
Composer script handling the dist parameters file.
- Host: GitHub
- URL: https://github.com/becklyn/yamlparameters
- Owner: Becklyn
- License: bsd-3-clause
- Created: 2018-01-10T10:19:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T15:20:21.000Z (over 6 years ago)
- Last Synced: 2024-04-15T00:45:31.194Z (9 months ago)
- Topics: composer, php
- Language: PHP
- Size: 11.7 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Yaml Parameters Handler
=======================Automates the installation workflow for `parameters.yaml` files.
Installation and Usage
----------------------Add the following code to your `composer.json`:
```json
{
"require": {
"becklyn/yaml-parameters-handler": "^1.0"
},
"scripts": {
"yaml-parameters": [
"Becklyn\\YamlParameters\\Script::handle"
],
"post-install-cmd": [
"@yaml-parameters"
],
"post-update-cmd": [
"@yaml-parameters"
]
},
"extra": {
"parameters": "config/parameters.yaml"
}
}
```The `"extra"`-parameter is optional, it defaults to `config/parameters.yaml`.
The `.dist` file must be named like the target file, with additional `.dist` infix before the extension (the default is `config/parameters.yaml -> config/parameters.dist.yaml`)* All obsolete config will be removed without warning.
* The merging of `.dist` parameters only works for scalars and arrays.