eurobertics / connfetti-ini
A INI config file reader displaying the config in class hierarchy.
0.2
2025-02-05 13:15 UTC
Requires
- php: >=7.3
- eurobertics/connfetti-io: *
README
A INI config file reader in PHP which returns the content of the INI file as a class hierarchy.
Connfetti-INI is a simple INI reader which reads an INI file with a syntax as follows:
configname=configvalue configname.subconfigname=configvalue2
and returns a class with the hierarchical readonly members of the config variables, for example:
$config = new Config('test.ini'); echo $config->configname; echo "\n"; echo $config->configname->subconfigname;
Returns:
configvalue
configvalue2
Requires Connfetti-IO for reading the files.