PHPackages                             th3shadowbroker/json-configuration - 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. th3shadowbroker/json-configuration

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

th3shadowbroker/json-configuration
==================================

A basic json-configuration.

v1.0.0(7y ago)08[1 issues](https://github.com/Th3Shadowbroker/php-json-configuration/issues)Apache-2.0PHP

Since Apr 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Th3Shadowbroker/php-json-configuration)[ Packagist](https://packagist.org/packages/th3shadowbroker/json-configuration)[ RSS](/packages/th3shadowbroker-json-configuration/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Json-Configuration
------------------

[](#json-configuration)

This library (actually it's just a single file xD) contains a basic json-based configuration handler.

### Composer

[](#composer)

php-json-configuration is available on [packagist](https://packagist.org/packages/th3shadowbroker/json-configuration):

```
composer require th3shadowbroker/json-configuration

```

### Example

[](#example)

```
//Use class.
use github\th3shadowbroker\json_config\JsonConfiguration;

//Create a new config
$config = new JsonConfiguration(__DIR__.'/somefile.json');

//Set a default value.
$config->setDefault('something', 'anything');

//Set multiple defaults at once.
$config->setDefaults( ['another' => 'value'] );

//Set the value of a nested key.
$config->set('sonethingnested.nest', 'a nested value');

//Save the configuration.
$config->save();

//or save it to another location
$config->save(__DIR__.'/someotherfile.json');

echo $config->get('somethingnested.nest');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

2581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/109e482d6ae49c35d094a3c8c6760a72a905148a4d57eee02ffb836f4a87d2ef?d=identicon)[Th3Shadowbroker](/maintainers/Th3Shadowbroker)

---

Top Contributors

[![Th3Shadowbroker](https://avatars.githubusercontent.com/u/8280615?v=4)](https://github.com/Th3Shadowbroker "Th3Shadowbroker (2 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (1 commits)")

---

Tags

configurationjsonphputilities

### Embed Badge

![Health badge](/badges/th3shadowbroker-json-configuration/health.svg)

```
[![Health](https://phpackages.com/badges/th3shadowbroker-json-configuration/health.svg)](https://phpackages.com/packages/th3shadowbroker-json-configuration)
```

PHPackages © 2026

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