ialopezg/config
Composer 安装命令:
composer require ialopezg/config
包简介
Configuration file manager
README 文档
README
PHP based Configuration file manager
Installation
composer require ialopezg/config
Features
- Exceptions handling.
- PHP configuration reader and writer.
- Configuration File Manager.
Requirements
- PHP 5.6+
Usage
use ialopezg\Libraries\Config\Config; $config = Config::load('database.php'); // Get the value echo $config->get('database.connections.default.db_driver'); // Change the value $config->set('database.connections.default.db_driver', 'MSSQL'); // Print new value echo $config->get('database.connections.default.db_driver'); // Write the file $config->toFile('database.php');
Please, check examples directory for more details of usage.
License
This project is under the MIT license. For more information see See LICENSE.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-14