badbreze / simple-ini
Simple Ini Manipulation Class for PHP
dev-master
2016-05-17 09:40 UTC
Requires
- php: >=5.3.0
- hoa/exception: ~1.0
This package is not auto-updated.
Last update: 2025-03-01 21:43:35 UTC
README
The SimpleIni Utility is a small INI file tool for read/write values inside INI file easy.
Installation
Using Composer
composer require badbreze/simple-ini
Example
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