starbug/config

A configuration data loader.

Installs: 1 900

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/starbug/config

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

This package is auto-updated.

Last update: 2025-09-17 12:11:49 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.