starbug / config
A configuration data loader.
v0.9.1
2022-12-17 06:09 UTC
Requires
- starbug/resource-locator: ^0.9.1
Requires (Dev)
- starbug/devel: ^1.0
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.