eurobertics/connfetti-ini

A INI config file reader displaying the config in class hierarchy.

0.1.3 2022-11-15 20:15 UTC

This package is auto-updated.

Last update: 2024-09-16 00:05:57 UTC


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.