leocavalcante / siler

⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
https://siler.leocavalcante.dev
MIT License
1.12k stars 90 forks source link

Built in config? #822

Open trollboy opened 2 years ago

trollboy commented 2 years ago

Is there a built in config I'm missing? Something to read a .env or config.ini/yaml and avail those settings to the entire application? Should there be? Seems like low hanging fruit that would be a nice time saver.

leocavalcante commented 2 years ago

Hi! No, actually Siler does not provide any default settings, it is more like a library than a framework.

trollboy commented 2 years ago

right but it does provide things like graphql integration... I dunno just figured it would be a nice helper function.

trollboy commented 2 years ago

looks like there already is an undocumented one? https://github.com/laminas/laminas-config

leocavalcante commented 2 years ago

https://github.com/leocavalcante/siler/blob/main/src/Config/Config.php uses Laminas Config underneath. Is that what you mean? I thought it was about providing skeleton config like in frameworks.

trollboy commented 2 years ago

oh no, just a standard built in for loading my configs. Might be worth updating the docs to illustrate that functionality.