I am creating a framework in PHP and need to have a few configuration files. Some of these files will unavoidably have a large number of entries.
What format would be the best for these config files?
Here is my quantification of best:
I started out using XML, but quickly gave up for obvious reasons. I've thought of JSON and YAML but wanted to see what else is out there.
How about an INI file format? It's a de facto configuration file standard, and PHP has a built-in parser for that format:
parse_ini_file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With