snapflowio/config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-12