PHPackages                             phpnomad/array-json-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. phpnomad/array-json-config

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

phpnomad/array-json-config
==========================

1.0.0(1y ago)073[1 PRs](https://github.com/phpnomad/array-json-config/pulls)2MITPHPCI passing

Since Dec 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/phpnomad/array-json-config)[ Packagist](https://packagist.org/packages/phpnomad/array-json-config)[ Docs](https://github.com/phoenix/core)[ RSS](/packages/phpnomad-array-json-config/feed)WikiDiscussions main Synced today

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

phpnomad/array-json-config
==========================

[](#phpnomadarray-json-config)

[![Latest Version](https://camo.githubusercontent.com/5801ac8d4c1a75576ad4d3427e42d8527ea75fc897f5aa35366476176c53f664/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706e6f6d61642f61727261792d6a736f6e2d636f6e6669672e737667)](https://packagist.org/packages/phpnomad/array-json-config)[![Total Downloads](https://camo.githubusercontent.com/d79a0ceef2acc1beaec4775a2db74a3836d60a08ce33f231afc10a5dd19f6b8c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706e6f6d61642f61727261792d6a736f6e2d636f6e6669672e737667)](https://packagist.org/packages/phpnomad/array-json-config)[![PHP Version](https://camo.githubusercontent.com/81a08a5ac5258519ef5f383a90f54c03024157ac1d2eb0559b2969dc2b346e5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068706e6f6d61642f61727261792d6a736f6e2d636f6e6669672e737667)](https://packagist.org/packages/phpnomad/array-json-config)[![License](https://camo.githubusercontent.com/cfc689d311807dddb00be982337d5a116e0eb1e3a723b8e73f724667758f42d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068706e6f6d61642f61727261792d6a736f6e2d636f6e6669672e737667)](https://packagist.org/packages/phpnomad/array-json-config)

`phpnomad/array-json-config` provides two concrete strategies for `phpnomad/config`: an in-memory array-backed `ConfigStrategy` and a JSON file loader that implements `ConfigFileLoaderStrategy`. This package is just the strategy classes. If you want them wired into a DI container and registered at bootstrap, use `phpnomad/json-config-integration`, which depends on this package.

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

[](#installation)

```
composer require phpnomad/array-json-config
```

In most PHPNomad applications you install `phpnomad/json-config-integration` instead, which pulls this package in as a dependency.

Overview
--------

[](#overview)

- `ArrayConfigStrategy` implements `PHPNomad\Config\Interfaces\ConfigStrategy`. It holds registered configuration data in a protected array and exposes `register()`, `has()`, and `get()` methods. Lookups support dot notation via `PHPNomad\Utils\Helpers\Arr::dot()`, so `get('database.default.host')` walks nested arrays.
- `JsonFileLoader` implements `PHPNomad\Config\Interfaces\ConfigFileLoaderStrategy`. Its `loadFileConfigs()` method reads a path, runs `json_decode()`, and throws `PHPNomad\Config\Exceptions\ConfigException` if the file cannot be parsed into an array.
- Both classes live under the `PHPNomad\ArrayJsonConfig\Strategies` namespace.
- Any code that depends on the `phpnomad/config` interfaces can consume these strategies without modification.
- Pair with `phpnomad/json-config-integration` to bind the strategies to the DI container and register configs against `ConfigService` at load time.

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

[](#documentation)

Full documentation for PHPNomad lives at [phpnomad.com](https://phpnomad.com).

License
-------

[](#license)

MIT. See [LICENSE.txt](LICENSE.txt).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance63

Regular maintenance activity

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e6206223bd6f2a57b8ac80605b1b5c3521faaec18ad3f20f25fb728a9a13784?d=identicon)[tstandiford](/maintainers/tstandiford)

---

Top Contributors

[![alexstandiford](https://avatars.githubusercontent.com/u/8210827?v=4)](https://github.com/alexstandiford "alexstandiford (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

configconfigurationframeworkjsonphpphpnomadplatform-agnostic

### Embed Badge

![Health badge](/badges/phpnomad-array-json-config/health.svg)

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

###  Alternatives

[melchiorkokernoot/laravel-autowire-config

Allows configuration injection through auto-wired constructor arguments

1311.7k](/packages/melchiorkokernoot-laravel-autowire-config)

PHPackages © 2026

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