tvr/config

Simple Config Class

v1.0.1 2013-03-21 23:37 UTC

This package is not auto-updated.

Last update: 2024-04-27 11:18:02 UTC


README

Usage:

<?php

use \Tvr\Config;

$config = new Config(__DIR__.'/../data/mainconfig.php');
echo $config->getParam('this.config.param1');
?>

Mainconfig file:

<?php
return array(
    'this' => array(
        'my' => 'one',
        'config' => array(
            'param1' => 3.14,
            'param2' => 'simpletest'
        )
    )
);
?>

Install from packagist

{
    "require": {
        "tvr/config": "v1.0.1"
    }
}