HTTPS SSH

YamlConfig

Usage

The configuration file format uses the name of the environment at the top level. The second level can contain two keys: values or inherits. Values contains the values for that environment, and can follow the normal yaml format in any way. Inherits defines which environment to inherit from.

You can use any environment name, but if the parser cannot find the named environment it will fall back to loading the environment named 'base'.

Example:

base:
  values:
    site_url: https://www.google.com/
    helpers:
      - test
      - test2
    assoc:
      test: tree
      test2: tree

development:
  inherits: base
  values:
    helpers:
      - test
      - test2
      - test3

Getting Started

Install

You may install YamlConfig with Composer:

composer require aeolun/yamlconfig@dev-default

Of course, a manual install is also an option.

System Requirements

You need PHP >= 5.3.0.

Community

Twitter

Follow @aeolun on twitter.

License

YamlConfig is released under the MIT public license.