snapflowio/config
最新稳定版本:v0.1.0
Composer 安装命令:
composer require snapflowio/config
包简介
A simple and lightweight library for reading configuration files.
README 文档
README
A simple and lightweight library for reading configuration files.
Installation
composer require snapflow/config
Quick Start
<?php use Snapflow\Config\Config; // Load config files, parses them based on the extension Config::load('app', '/path/to/config.json'); Config::load('database', '/path/to/database.yaml'); Config::load('env', '/path/to/.env'); // Access values using dot notation $dbHost = Config::getParam('database.host'); $appName = Config::getParam('app.name', 'Default App'); $apiKey = Config::getParam('env.api.key'); // Set values dynamically Config::setParam('runtime.version', '1.0.0'); // Works with nested paths $timeout = Config::getParam('app.services.api.timeout', 30);
License
This library is available under the MIT License.
Copyright
Copyright (c) 2025 Snapflow
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-12