codemonster-ru/config 问题修复 & 功能扩展

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

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

codemonster-ru/config

最新稳定版本:v2.0.1

Composer 安装命令:

composer require codemonster-ru/config

包简介

Lightweight configuration loader for PHP applications

README 文档

README

Latest Version on Packagist Total Downloads License Tests

Simple configuration loader and helper for PHP applications.

📦 Installation

composer require codemonster-ru/config

🚀 Usage

1. Load config files

use Codemonster\Config\Config;

Config::load(__DIR__ . '/config');

2. Access config values

use Codemonster\Config\Config;

// get values
$name = Config::get('app.name', 'Default');
$dbHost = Config::get('database.host');

// set values dynamically
Config::set('app.debug', true);

// get all configs
$all = Config::all();

📄 Example config file (config/app.php)

<?php

return [
    'name' => 'Codemonster',
    'debug' => false,
];

🧪 Testing

composer test

👨‍💻 Author

Kirill Kolesnikov

📜 License

MIT

统计信息

  • 总下载量: 168
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

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