The SimpleIni Utility is a small INI file tool for read/write values inside INI file easy.
composer require badbreze/simple-ini
use IniUtil\SimpleIni;
require_once "vendor/autoload.php";
$ini = new SimpleIni(__DIR__.'/helloworld.ini');
$hello = $ini->getVariable('hello');
echo($hello);
//result: world
In this example we have a file called "helloworld.ini" with the following content.
hello = world
@author Damian Gomez