securetrading/config
Composer 安装命令:
composer require securetrading/config
包简介
Secure Trading's Config package for parsing INI files.
README 文档
README
A helper package used by other Secure Trading packages.
Release History
| Version | Changes |
|---|---|
| 3.0.1 | phpunit updates |
| 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.1 | PHP 8.2 |
| 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.
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'
统计信息
- 总下载量: 236
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-05