定制 lezhnev74/dummy-config-loader 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

lezhnev74/dummy-config-loader

Composer 安装命令:

composer require lezhnev74/dummy-config-loader

包简介

This file allows me to lazy load config files and access entries with dot syntax: `database.default.driver`

README 文档

README

Latest Stable Version Build Status License Total Downloads

Usage

$config = new DummyConfigLoader\Config(__DIR__); // this will look for config files in this folder
$value = $config->get('database.default.driver', 'mongodb');

You will get mariadb as $value if you will place file database.php in the given folder with contents:

return [
    "default" => [
        "driver" => "mariadb"
    ]
];

Otherwise you will get mongodb.

First section of any key addresses the file within the directory. One level of recursion allowed. If no such file found in the folder - exception will be thrown.

Installation

composer require lezhnev74/dummy-config-loader

Support

If you need help - feel comfortable to ping me at lezhnev.work@gmail.com

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固