承接 mhndev/config 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mhndev/config

最新稳定版本:1.0.0

Composer 安装命令:

composer require mhndev/config

包简介

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files forked from hassankhan/config

README 文档

README

forked from hassankhan/config the one and only difference which I made is : access config values by file name

<?php
use Noodlehaus\Config;

// Load all supported files in a directory
$conf = new Config(__DIR__ . '/config');

consider in mentioned path we have multiple config file and one of them is mail.php and it's content is as follow

<?php
return [ 
       'driver'=>'file'
];

now you can access this variable like follow :

// Get value using key
$debug = $conf->get('mail.driver');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-30