securetrading / config
Secure Trading's Config package for parsing INI files.
3.0.0
2021-04-20 14:23 UTC
Requires
- php: ^8.0
- securetrading/exception: ^1.0
- securetrading/ioc: ^3.0
Requires (Dev)
- securetrading/unittest: ^3.0
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'