Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 2.32 KB

README.md

File metadata and controls

76 lines (60 loc) · 2.32 KB

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