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

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

juststeveking/config
====================

A simple dot notation connfiguration package

v2.0.0(5y ago)11581[1 PRs](https://github.com/JustSteveKing/config/pulls)1MITPHPPHP ^8.0CI failing

Since Jun 8Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/JustSteveKing/config)[ Packagist](https://packagist.org/packages/juststeveking/config)[ GitHub Sponsors](https://github.com/JustSteveKing)[ RSS](/packages/juststeveking-config/feed)WikiDiscussions master Synced 1w ago

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

Config
======

[](#config)

[![Latest Version](https://camo.githubusercontent.com/c6590b61142079e513ce3417f67a2084ef0ae82f3c879ca4c093e541c5f09f71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a75737473746576656b696e672f636f6e6669672e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/juststeveking/config)[![Software License](https://camo.githubusercontent.com/c5fb94b07cde0d74f8981b61c98e5bb908e7938a6ad9160dbb19aa8c5f4b688a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a75737473746576656b696e672f636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://github.com/JustSteveKing/config/blob/master/LICENSE)[![PHP Version](https://camo.githubusercontent.com/3a4685fdbc7618b77a65d6f5e758c376f8032335edfc6e0d769dad4f1a0fe045/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a75737473746576656b696e672f636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![run-tests](https://github.com/JustSteveKing/config/workflows/run-tests/badge.svg)](https://github.com/JustSteveKing/config/workflows/run-tests/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3a3d5f7a1d1cf42b12adefc444607c381ff0236acf16a99fe23d994eb4adbecc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a75737453746576654b696e672f636f6e6669672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/JustSteveKing/config/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/6329e1aece06c43781225f63a810a1b4398bcc8b21471e1bd415d306dc73bee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a75737473746576656b696e672f636f6e6669672e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6d656469756d76696f6c6574726564)](https://packagist.org/packages/juststeveking/config)

**Please note, this package is a work in progress. While there will be no breaking changes a stable release is not yet available**

A simple dot notation configuration package.

Installing
----------

[](#installing)

Using composer:

```
$ composer require juststeveking/config
```

You are then to use this package however you need.

Usage
-----

[](#usage)

```
// app.php
return [
    'name' => 'super cool app',
    'version' => 'v1.0.0',
    'items' => [
        'router' => 'awesome php router'
    ]
];

$appConfig = require __DIR__ . '/../config/app.php'; // an array

$config = Repository::build($appConfig);

$config->all(); // returns all items in config
$config->has('name.version'); // returns a boolean for if the item is available
$config->get('items.router'); // will return "awesome php router"
$config->getMany(['name', 'version']); // will return ['name' => 'super cool app', 'version' => 'v1.0.0']
$config->set('items.database', 'pdo'); // will set 'database' => 'pdo' on the items array
$config->all(); // will reurn the entire config array
```

Tests
-----

[](#tests)

There is a composer script available to run the tests:

```
$ composer run preflight:test
```

However, if you are unable to run this please use the following command:

```
$ ./vendor/bin/phpunit --testdox
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance53

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

Total

2

Last Release

1915d ago

Major Versions

v1.0.0 → v2.0.02021-02-18

PHP version history (2 changes)v1.0.0PHP ^7.4

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a87fe82b349821ebd49cf57d65c4cd3e33ae0833222a8438d90fe8921ca899ea?d=identicon)[JustSteveKing](/maintainers/JustSteveKing)

---

Top Contributors

[![JustSteveKing](https://avatars.githubusercontent.com/u/6368379?v=4)](https://github.com/JustSteveKing "JustSteveKing (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[dtr/ip

An IPv4/v6 Helper Suite for PHP

2129.2k1](/packages/dtr-ip)[shel/neos-commandbar

A commandbar (CMD+K) for Neos CMS

1614.6k1](/packages/shel-neos-commandbar)

PHPackages © 2026

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