library config
Secure Trading's Config package for parsing INI files.
securetrading/config
Secure Trading's Config package for parsing INI files.
- Wednesday, November 16, 2016
- by Secure-Trading
- Repository
- 1 Watchers
- 0 Stars
- 228 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
PHP-Config
A helper package used by other Secure Trading packages., (*1)
Release History
Version |
Changes |
3.0.0 |
PHP 8 compatibility. |
2.0.0 |
PHP 7.3 and 7.4 compatibility. |
1.0.0 |
Initial Release |
PHP Version Compatibility
Version |
Changes |
3.0.0 |
PHP 8.0.0 - PHP 8.0.3 |
2.0.0 |
PHP 7.3 - PHP 7.4 |
1.0.0 |
PHP 5.3 - PHP 7.2 |
Usage
\Securetrading\Config\Config
accepts a multi-dimensional array in its constructor., (*2)
Calls to the instance methods has()
, get()
and set()
can then be used to easily manipulate entries in the multi-dimensional array., (*3)
Example:, (*4)
$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'
dev-master
9999999-dev
Secure Trading's Config package for parsing INI files.
Sources
Download
MIT
The Requires
The Development Requires
1.0.0
1.0.0.0
Secure Trading's Config package for parsing INI files.
Sources
Download
MIT
The Requires
The Development Requires