starbug/config

A configuration data loader.

v0.9.1 2022-12-17 06:09 UTC

This package is auto-updated.

Last update: 2024-10-17 10:09:58 UTC


README

Let's suppose you have the following module directories.

app/modules/example1
app/modules/example2

Let's also suppose you have the following yml files within those modules.

app/modules/example1/etc/test.yml
app/modules/example2/etc/test.yml
use Starbug\Config\Config;

$config = new Config($locator);

$data = $config->get("test");

// $data will contain the merged data from both files
var_dump($data);

See starbug-resource-locator for details on the locator which is passed to Config constructor.