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

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

eserozvataf/scabbia2-config
===========================

Scabbia2 Config Component

v0.1.1(10y ago)1261Apache-2.0PHPPHP &gt;=5.6.0

Since Sep 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/eserozvataf/scabbia2-config)[ Packagist](https://packagist.org/packages/eserozvataf/scabbia2-config)[ Docs](http://www.scabbiafw.com/)[ RSS](/packages/eserozvataf-scabbia2-config/feed)WikiDiscussions master Synced 2mo ago

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

Scabbia2 Config Component
=========================

[](#scabbia2-config-component)

[This component](https://github.com/eserozvataf/scabbia2-config) is a configuration compiler which supports binding multiple configuration files.

[![Build Status](https://camo.githubusercontent.com/26a577c4e6f44e98282c8b24d511cc3a439360e21e561fefe6f67f0be8814e6a/68747470733a2f2f7472617669732d63692e6f72672f657365726f7a76617461662f73636162626961322d636f6e6669672e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/eserozvataf/scabbia2-config)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7aa2272b016cc2772a966079f7ed951f44b117656f6b74f29c72cf5ba1cacf78/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657365726f7a76617461662f73636162626961322d636f6e6669672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/eserozvataf/scabbia2-config/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/265edf759ecae15bf21133333e058a931bfdb0248f07ef2629aaa48930e31216/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d636f6e6669672f646f776e6c6f6164732e706e67)](https://packagist.org/packages/eserozvataf/scabbia2-config)[![Latest Stable Version](https://camo.githubusercontent.com/99dad2c22e0eb10c4fbb2799de09b41dc36e69423ddbc48e03ff79d7ea6e5047/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d636f6e6669672f762f737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-config)[![Latest Unstable Version](https://camo.githubusercontent.com/a021a9b4a2511ac2ba4721a61069e6643176d9f8298bb24a9b57a13ab33d656d/68747470733a2f2f706f7365722e707567782e6f72672f657365726f7a76617461662f73636162626961322d636f6e6669672f762f756e737461626c65)](https://packagist.org/packages/eserozvataf/scabbia2-config)[![Documentation Status](https://camo.githubusercontent.com/1ebeb3aa2c5cce31b6bf29a03a59cd40727e8fe235ba9ca28824ef1330a81328/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73636162626961322d646f63756d656e746174696f6e2f62616467652f3f76657273696f6e3d6c6174657374)](https://readthedocs.org/projects/scabbia2-documentation)

Usage
-----

[](#usage)

### Merging multiple configurations

[](#merging-multiple-configurations)

```
use Scabbia\Config\ConfigCollection;

$confs = new ConfigCollection();

// add a yaml-parsed configuration
$yaml = new \Scabbia\Yaml\Parser();
$confs->add($yaml->parse(file_get_contents('common.yml')));

// ...and/or add a json file
$confs->add(json_decode(file_get_contents('production.json')));

// ...and/or add a configuration value manually
$confs->add([
    'env' => 'development'
]);

// output the result
$config = $confs->save();
print_r($config);
```

### Overriding an existing configuration item

[](#overriding-an-existing-configuration-item)

```
use Scabbia\Config\ConfigCollection;

$confs = new ConfigCollection();

$confs->add([
    'env' => 'production'
]);

// in second config you can override a value with 'important' flag
$confs->add([
    'env|important' => 'development'
]);

// output the result
$config = $confs->save();
echo $config['env'];
```

### Constructing a list in separate configurations

[](#constructing-a-list-in-separate-configurations)

```
use Scabbia\Config\ConfigCollection;

$confs = new ConfigCollection();

$confs->add([
    'items|list' => [
        'first',
        'second'
    ]
]);

// in second config you can override a value with 'important' flag
$confs->add([
    'items|list' => [
        'third'
    ]
]);

// output the result
$config = $confs->save();
print_r($config['items']);
```

### Flatten configuration value keys

[](#flatten-configuration-value-keys)

```
use Scabbia\Config\ConfigCollection;

$confs = new ConfigCollection();

$confs->add([
    'database|flat' => [
        'mongo' => [
            'username' => 'scabbia2',
            'password' => 'testing'
        ]
    ]
]);

// output the result
$config = $confs->save();
echo $config['database/mongo/username'];
echo $config['database/mongo/password'];
```

Links
-----

[](#links)

- [List of All Scabbia2 Components](https://github.com/eserozvataf/scabbia2)
- [Documentation](https://readthedocs.org/projects/scabbia2-documentation)
- [Twitter](https://twitter.com/eserozvataf)
- [Contributor List](contributors.md)
- [License Information](LICENSE)

Contributing
------------

[](#contributing)

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the [eserozvataf/scabbia2-config](https://github.com/eserozvataf/scabbia2-config) repository.

- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub issues.
- To support: [![Donate](https://camo.githubusercontent.com/630a83896c8ab4a5af0f79046098e3d8713112304fd119d86fa5957a0ecc5159/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f657365726f7a76617461662e737667)](https://gratipay.com/eserozvataf/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3891d ago

### Community

Maintainers

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

---

Top Contributors

[![eser](https://avatars.githubusercontent.com/u/866558?v=4)](https://github.com/eser "eser (12 commits)")

---

Tags

configscabbialarukediscabbia2scabbiafw

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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)

PHPackages © 2026

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