starbug / config
A configuration data loader.
Installs: 1 287
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
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.