codegun/ini

Ini Parser and Builder for PHP

0.1.1 2012-08-04 03:53 UTC

This package is not auto-updated.

Last update: 2024-12-21 15:08:39 UTC


README

Ini Parser and Builder for PHP

Install

Add codegun/ini to composer.json then install with composer.phar install

Namespace

All the classes under CodeGun\Ini namespace

  • Parser
  • Builder

Usage

$builder = new \CodeGun\Ini\Builder(array(
    'a'        => 'd',
    'b'        => array('test'=> 'c'),
    'database' => array(
        'default' => array(
            'name' => 'db',
            'host' => 'master.db',
            'ip'   => 'dd',
        )
    ),
    'array'    => array('a', '1', 3),
));
echo $builder;