simplydi / simplyconfig
A very simple configuration component for any app using yaml files
Installs: 28
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/simplydi/simplyconfig
Requires
- symfony/yaml: ^6.3
This package is auto-updated.
Last update: 2025-10-05 12:20:53 UTC
README
A verify simple configuration component using Yaml files
Usage
Your YAML file: settings.yaml
app: name: It works timezone: UTC otherConfig: this thing works too
In your app:
// init the class and pass the path to yaml file $config = new \SimplyDi\SimplyConfig\Config("/path/to/settings.yaml"); // can use dot notation $appName = $config->get('app.name'); echo $appName; // prints "It works" echo $config->get('otherConfig'); // prints "this thing works too"