codemonster-ru/config
最新稳定版本:v2.0.1
Composer 安装命令:
composer require codemonster-ru/config
包简介
Lightweight configuration loader for PHP applications
README 文档
README
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
📜 License
统计信息
- 总下载量: 168
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-25