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

ActiveLibrary

ofcold/component-config
=======================

Manage Ofcold configuration by persistent storage.

1.1(4y ago)03MITPHPPHP ^7.4|^8.0

Since Jun 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ofcold/component-config)[ Packagist](https://packagist.org/packages/ofcold/component-config)[ Docs](https://ofcold.com)[ RSS](/packages/ofcold-component-config/feed)WikiDiscussions master Synced 1w ago

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

Promise Component Config
========================

[](#promise-component-config)

> Manage Promise configuration by persistent storage.

Installing
----------

[](#installing)

```
composer require ofcold/component-config

```

Useing
------

[](#useing)

```
$config = new Ofcold\Component\Config\Repository

// Set initial configuration items
$config->addNamespace('your-config-path');

// Add a namespace to configuration.
$config->addNamespace(__DIR__ '/your-path/config', 'user');

// Get a config item.
$config->get('foo');

// Get a namespace config item.
$config->get('user::foo.bar');
```

Api
---

[](#api)

MethodDescriptionaddNamespace(string $directory, ?string $namespace = null): voidAdd a namespace to configuration.has($key): boolDetermine if the given configuration value exists.get($key, $default = null)Get the specified configuration value.getMany(array $keys): arrayGet many configuration values.set($key, $value = null): voidSet a given configuration value.prepend($key, $value): voidPrepend a value onto an array configuration value.push($key, $value): voidPush a value onto an array configuration value.all(): arrayGet all of the configuration items for the application..

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~139 days

Total

2

Last Release

1651d ago

Major Versions

0.0.1 → 1.12021-11-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c52a844b37ff37e8fa6d7bf4b482d8ff4ef15e250098d1f60bd19041d953834?d=identicon)[billwithjiali](/maintainers/billwithjiali)

---

Top Contributors

[![lilianjin](https://avatars.githubusercontent.com/u/21023027?v=4)](https://github.com/lilianjin "lilianjin (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)

PHPackages © 2026

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