1. Go to this page and download the library: Download wdalmut/simplini library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wdalmut / simplini example snippets
$conf = new Config();
$conf->load(__DIR__ . '/my.ini', 'dev');
echo $conf->prod()->a; // will echo "ecco"
$conf = new Config();
$conf->load(__DIR__ . '/my.ini');
var_dump(conf->a); // array(one,two,three)
$conf = new Config();
$conf->load(__DIR__ . '/my.ini');
echo conf->production()->a->b-c; // will echo "hello"