Secure Trading's Config package for parsing INI files.

3.0.0 2021-04-20 14:23 UTC

This package is not auto-updated.

Last update: 2024-12-11 07:01:42 UTC


README

A helper package used by other Secure Trading packages.

Release History

PHP Version Compatibility

Usage

\Securetrading\Config\Config accepts a multi-dimensional array in its constructor.

Calls to the instance methods has(), get() and set() can then be used to easily manipulate entries in the multi-dimensional array.

Example:

$config = new \Securetrading\Config\Config([
    'outer' => ['inner' => 'value']
]);

$config->has('outer'); // true
$config->has('outer/inner'); // true
$config->get('outer/inner'); // 'value'
$config->set('outer/inner', 'new_value');
$config->get('outer/inner'); // 'new_value'