2017 © Pedro Peláez
 

library yaml-parameters

Composer script handling the dist parameters file.

image

becklyn/yaml-parameters

Composer script handling the dist parameters file.

  • Thursday, January 11, 2018
  • by becklyn
  • Repository
  • 2 Watchers
  • 0 Stars
  • 36 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

Yaml Parameters Handler

Automates the installation workflow for parameters.yaml files., (*1)

Installation and Usage

Add the following code to your composer.json:, (*2)

{
    "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), (*3)

  • All obsolete config will be removed without warning.
  • The merging of .dist parameters only works for scalars and arrays.

The Versions

11/01 2018

dev-test

dev-test https://github.com/Becklyn/YamlParameters

Composer script handling the dist parameters file.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

10/01 2018

dev-master

9999999-dev https://github.com/Becklyn/YamlParameters

Composer script handling the dist parameters file.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires