PHPackages                             sam-burns/config-tree - 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. sam-burns/config-tree

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

sam-burns/config-tree
=====================

1.0.0(9y ago)030MITPHPPHP ^7.1

Since Jul 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Sam-Burns/config-tree)[ Packagist](https://packagist.org/packages/sam-burns/config-tree)[ RSS](/packages/sam-burns-config-tree/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/2a1d698a30967e8df751f0abeeda1194a318ba1f84686339f78a1fe85b3d0791/68747470733a2f2f7472617669732d63692e6f72672f53616d2d4275726e732f636f6e6669672d747265652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Sam-Burns/config-tree)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/69dfa4478e6bfcaef9ce8592aa7b04c892d2e1af90afb273790c7e9079c4394d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53616d2d4275726e732f636f6e6669672d747265652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Sam-Burns/config-tree/?branch=master)

Config Tree
===========

[](#config-tree)

Description
-----------

[](#description)

A library for reading config files of various formats, and representing them as config tree objects.

Example of usage
----------------

[](#example-of-usage)

`config.json` file:

```
{
    "parameters": {
        "mysql": {
            "user": "dbuser"
        }
    }
}
```

```
$configBuilder = new \ConfigTree\Builder\ConfigTreeBuilder();
$configBuilder->addSettingsFromPath('/path/config.json');
$config = $configBuilder->buildConfigTreeAndReset();

$mysqlUsername = $config->getSettingFromPath('parameters/mysql/user');
// $mysqlUsername === "dbuser"
```

Or, do stuff like this:

```
$dbConfig = $config->getSubtreeFromPath('parameters/mysql');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~282 days

Total

3

Last Release

3407d ago

Major Versions

0.2.0 → 1.0.02017-01-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dc0c2d8bba727c2b30227f0e9eb327906ae55f4673bb48df1c846365e58d526?d=identicon)[Sam-Burns](/maintainers/Sam-Burns)

---

Top Contributors

[![Sam-Burns](https://avatars.githubusercontent.com/u/6594039?v=4)](https://github.com/Sam-Burns "Sam-Burns (39 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sam-burns-config-tree/health.svg)

```
[![Health](https://phpackages.com/badges/sam-burns-config-tree/health.svg)](https://phpackages.com/packages/sam-burns-config-tree)
```

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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