PHPackages                             alex-kalanis/kw\_confs - 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. alex-kalanis/kw\_confs

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

alex-kalanis/kw\_confs
======================

Configs for accessing settings in KWCMS

v2.0.0(2y ago)0308BSD-3-ClausePHPPHP &gt;=7.4.0

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alex-kalanis/kw_confs)[ Packagist](https://packagist.org/packages/alex-kalanis/kw_confs)[ RSS](/packages/alex-kalanis-kw-confs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

kw\_confs
=========

[](#kw_confs)

[![Build Status](https://github.com/alex-kalanis/kw_confs/actions/workflows/code_checks.yml/badge.svg)](https://github.com/alex-kalanis/kw_confs/actions/workflows/code_checks.yml/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/79a4fdf0840ac7b866abe3bac1bd73daa29af914f50f08e913012c6b03d7a3f3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65782d6b616c616e69732f6b775f636f6e66732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alex-kalanis/kw_confs/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c4dce0b991445bcc26d268cd86a1b55b4f391d45654115332e7d4f9bb3c1bb52/68747470733a2f2f706f7365722e707567782e6f72672f616c65782d6b616c616e69732f6b775f636f6e66732f762f737461626c652e7376673f763d31)](https://packagist.org/packages/alex-kalanis/kw_confs)[![Minimum PHP Version](https://camo.githubusercontent.com/0e9ac047546796cfdbe1423d1f4d91c8f37d2fbb11614a7900bb7686aaa5401f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e737667)](https://php.net/)[![Downloads](https://camo.githubusercontent.com/b8975d04534e97ff414dc66f225e75c12ab7ecefe7a87bc60157f0d36e3f9f1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65782d6b616c616e69732f6b775f636f6e66732e7376673f7631)](https://packagist.org/packages/alex-kalanis/kw_confs)[![License](https://camo.githubusercontent.com/5e6818cbd44d7620fe17bbc4a9fb6487c4aa835ba6793c9acfe581295c874b07/68747470733a2f2f706f7365722e707567782e6f72672f616c65782d6b616c616e69732f6b775f636f6e66732f6c6963656e73652e7376673f763d31)](https://packagist.org/packages/alex-kalanis/kw_confs)[![Code Coverage](https://camo.githubusercontent.com/a239570894e8a04cf2eecd26c24eab9c240e23dc256bc17d2584bf5a825f2904/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65782d6b616c616e69732f6b775f636f6e66732f6261646765732f636f7665726167652e706e673f623d6d617374657226763d31)](https://scrutinizer-ci.com/g/alex-kalanis/kw_confs/?branch=master)

Define used configurations inside the KWCMS tree. Parse them and return them.

PHP Installation
----------------

[](#php-installation)

```
composer.phar require alex-kalanis/kw_confs
```

(Refer to [Composer Documentation](https://github.com/composer/composer/blob/master/doc/00-intro.md#introduction) if you are not familiar with composer)

This package contains example file from KWCMS bootstrap. Use it as reference.

This config bootstrap is connected with KWCMS modules. Using it outside KWCMS means you need to know the tree structure of module system and positioning configs there.

The idea is about configs which are separated not just by their name (single namespace) but also with their module name - so you can use the same key in more modules with a bit different meanings.

The basic config itself is simple php file with defined array variable "$config" in which are stored key-value pairs like in normal php array. You need to specify module - it will be automatically set there into content array when config loads.

It's also possible to use your own loader which will read your config files by your own rules. So you can connect reading configurations from DB or INI file and that all will still behave the same way. Just it's need to respect that loader's input is module and sometimes conf name and output is array of key-value pairs which will be set into config array with module as primary key.

#### Examples:

[](#examples)

For module 'image as part of content' there came array \['your internal config key' =&gt; 'this value will be get', 'another key' =&gt; false, \]

```
print \kalanis\kw_confs\Config::get('image as part of content', 'your internal system key', 'dummy');
```

And it returns 'dummy'

```
print \kalanis\kw_confs\Config::get('image as part of content', 'your internal config key', 'nope');
```

And it returns 'this value will be get'

The best usage is inside the controller classes across the other modules - you just fill `Config::get()` with your keys. It is possible to make a whole class which returns the wanted configs which will be instance of `IConf` and then pass it into lang loader.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

763d ago

Major Versions

v1.1.1 → v2.0.02024-04-08

PHP version history (2 changes)v1.0.0PHP &gt;=7.2.0

v2.0.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/499b0a541b787cdb31412f578c7b94c9790bcbee7de12c65b6101c6ce45ef6f0?d=identicon)[alex-kalanis](/maintainers/alex-kalanis)

---

Top Contributors

[![alex-kalanis](https://avatars.githubusercontent.com/u/59184183?v=4)](https://github.com/alex-kalanis "alex-kalanis (19 commits)")

---

Tags

configconfs

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alex-kalanis-kw-confs/health.svg)

```
[![Health](https://phpackages.com/badges/alex-kalanis-kw-confs/health.svg)](https://phpackages.com/packages/alex-kalanis-kw-confs)
```

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[dflydev/dot-access-configuration

Given a deep data structure representing a configuration, access configuration by dot notation.

13414.5M4](/packages/dflydev-dot-access-configuration)[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[m1/env

Env is a lightweight library bringing .env file parser compatibility to PHP. In short - it enables you to read .env files with PHP.

6412.0M21](/packages/m1-env)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)

PHPackages © 2026

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