PHPackages                             pmvc-app/dimension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pmvc-app/dimension

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pmvc-app/dimension
==================

PMVC multi-dimensional configuration library

0.2.2(8y ago)0227MIT

Since Jul 3Compare

[ Source](https://github.com/pmvc-app/dimension)[ Packagist](https://packagist.org/packages/pmvc-app/dimension)[ RSS](/packages/pmvc-app-dimension/feed)WikiDiscussions Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/7bef4fb0d373979aea46e3706bd292cec47bb15c589853ec598b750a41bfb68e/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d6170702f64696d656e73696f6e2f762f737461626c65)](https://packagist.org/packages/pmvc-app/dimension)[![Latest Unstable Version](https://camo.githubusercontent.com/fbb7b0ad1f8f1f8a0f837a5fd415cb881fbdf245cd3f65c9b9bb3ec3e15dad16/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d6170702f64696d656e73696f6e2f762f756e737461626c65)](https://packagist.org/packages/pmvc-app/dimension)[![CircleCI](https://camo.githubusercontent.com/d39389888c3911a08d6bc57a791977143ab649e059f2b8abbad1de28d84a0b44/68747470733a2f2f636972636c6563692e636f6d2f67682f706d76632d6170702f64696d656e73696f6e2f747265652f6d61696e2e7376673f7374796c653d737667)](https://circleci.com/gh/pmvc-app/dimension/tree/main)[![License](https://camo.githubusercontent.com/96342c94210ef46a11231c26a7f7288d1d6d1e448778c9d5868d82c748bad7d0/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d6170702f64696d656e73696f6e2f6c6963656e7365)](https://packagist.org/packages/pmvc-app/dimension)[![Total Downloads](https://camo.githubusercontent.com/d622ef67cacc5f24fcbc44e63cf66d3d0bbadec1831677964f9a3e091138fcfa/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d6170702f64696d656e73696f6e2f646f776e6c6f616473)](https://packagist.org/packages/pmvc-app/dimension)

PMVC multi-dimensional configuration library
============================================

[](#pmvc-multi-dimensional-configuration-library)

Config format use .env
----------------------

[](#config-format-use-env)

-
- How to defined array? Ans: use "underscore" plugin
    -

How to translate Constant
-------------------------

[](#how-to-translate-constant)

- Prefix with '\_', and the key will call constant($k)
-

How to escape
-------------

[](#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
---------------------------------

[](#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
------------------

[](#last-cook-callback)

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

});

```

Debug info
----------

[](#debug-info)

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

Other Resource
--------------

[](#other-resource)

- Deployment environment
    - [https://en.wikipedia.org/wiki/Deployment\_environment](https://en.wikipedia.org/wiki/Deployment_environment)

Auto load app or plugin config
------------------------------

[](#auto-load-app-or-plugin-config)

- APP
    -
- Plug-in
    - [https://github.com/pmvc/pmvc/blob/master/src/util\_plug.php#L979-L991](https://github.com/pmvc/pmvc/blob/master/src/util_plug.php#L979-L991)

Install with Composer
---------------------

[](#install-with-composer)

### 1. Download composer

[](#1-download-composer)

- mkdir test\_folder
- curl -sS  | php

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

[](#2-install-use-composerjson-or-use-command-line-directly)

#### 2.1 Install Use composer.json

[](#21-install-use-composerjson)

- vim composer.json

```
{
    "require": {
        "pmvc-app/dimension": "dev-master"
    }
}

```

- php composer.phar install

#### 2.2 Or use composer command-line

[](#22-or-use-composer-command-line)

- php composer.phar require pmvc-app/dimension

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~225 days

Total

2

Last Release

3058d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f593111e77142a10224458b0436e6b2d6f3e537f924c03130f0208bd3c4477f?d=identicon)[HillLiu](/maintainers/HillLiu)

---

Top Contributors

[![HillLiu](https://avatars.githubusercontent.com/u/1877738?v=4)](https://github.com/HillLiu "HillLiu (44 commits)")

---

Tags

plug-inpmvcdimension

### Embed Badge

![Health badge](/badges/pmvc-app-dimension/health.svg)

```
[![Health](https://phpackages.com/badges/pmvc-app-dimension/health.svg)](https://phpackages.com/packages/pmvc-app-dimension)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
