pmvc-app/dimension

PMVC multi-dimensional configuration library

0.2.2 2018-02-14 19:01 UTC

This package is auto-updated.

Last update: 2024-12-08 22:07:19 UTC


README

Latest Stable Version Latest Unstable Version CircleCI License Total Downloads

PMVC multi-dimensional configuration library

Config format use .env

How to translate Constant

How to escape

  • Prefix with escap character such as '\'.
  • If detected key start with escap character will bypass underscore process

How to extend another config file

  * add a config base=xxx at start of file

base=xxx
  • Important: only allow extend with same level configs

Last cook callback

\PMVC\option('set', 'dimensionCallback', function(){

});

Debug info

  • ?--trace=xxx
  • dimension
    • level information
  • dimension-level
    • level merge information
  • dimension-file
    • different file source merge information

Other Resource

Auto load app or plugin config

Install with Composer

1. Download composer

2. Install Use composer.json or use command-line directly

2.1 Install Use composer.json

  • vim composer.json
{
    "require": {
        "pmvc-app/dimension": "dev-master"
    }
}
  • php composer.phar install

2.2 Or use composer command-line

  • php composer.phar require pmvc-app/dimension