badbreze/simple-ini

Simple Ini Manipulation Class for PHP

dev-master 2016-05-17 09:40 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:51:13 UTC


README

Total Downloads

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

Project Page