PHPackages                             wtframework/config - 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. wtframework/config

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

wtframework/config
==================

What the Framework?! config

v0.1.0(2y ago)14672MITPHPPHP ^8.2

Since Dec 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wtframework/config)[ Packagist](https://packagist.org/packages/wtframework/config)[ RSS](/packages/wtframework-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (2)

What the Framework?! config
===========================

[](#what-the-framework-config)

Installation
------------

[](#installation)

```
composer require wtframework/config
```

Documentation
-------------

[](#documentation)

Use the `set` static method to set the configuration settings.

If you pass an array as the first parameter then this will replace all existing settings.

```
use WTFramework\Config\Config;

Config::set(['key1' => 'value1']);
```

If you pass a string as the first parameter and any value as the second parameter then this will add the setting to the existing settings.

```
Config::set('key2', 'value2');
```

Dot notation can be used to set a nested value.

```
Config::set(['key1' => ['key2' => 'value2']]);

Config::set('key1.key3', 'value3');
```

Use the `get` static method to return a configuration setting.

If the setting does not exist then it will return `null` or the value passed as the second parameter.

```
Config::set(['key1' => 'value']);

// Returns 'value'
$key1 = Config::get('key1');

// Returns null
$key2 = Config::get('key2');

// Returns 0
$key3 = Config::get('key3', 0);
```

Dot notation can be used to return a nested value.

```
Config::set(['key1' => ['key2' => 'value']]);

// Returns 'value'
$key2 = Config::get('key1.key2');
```

A `config` function is also provided as a wrapper around `Config::get`:

```
use function WTFramework\Config\config;

$key = config('key', 'default');
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/593fc3635659d661daf87a3debf99abd502bc0f7e4cce916319d37143775c8da?d=identicon)[wtframework](/maintainers/wtframework)

---

Top Contributors

[![MichaelRushton](https://avatars.githubusercontent.com/u/49325097?v=4)](https://github.com/MichaelRushton "MichaelRushton (2 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/wtframework-config/health.svg)

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

###  Alternatives

[magefan/module-conflict-detector

Detect extension conflicts

4872.6k2](/packages/magefan-module-conflict-detector)[michaelbelgium/youtube-to-mp3

Convert and search youtube video's via your own API

1751.1k](/packages/michaelbelgium-youtube-to-mp3)

PHPackages © 2026

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