nvanheuverzwijn/php-config 问题修复 & 功能扩展

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

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

nvanheuverzwijn/php-config

Composer 安装命令:

composer require nvanheuverzwijn/php-config

包简介

A generic configuration loader library not specifically based on files

README 文档

README

This library tries it's best to be lightweight and dependency free. The objective is to provide a standard configuration object, a pluggable configuration source objects and a standard factory object to configure the configuration.

Usage

The main way to instanciate a configuration object is via the ConfigFactory::fromArray static function. This function takes a simple array as a definition of the reader to use in order to generate a configuration object.

The array must respect the structure as shown below.

[
    'reader' => [
        [
            'class' => 'ClassName'
            'config' => 'argument passed to the constructor of ClassName'
        ],
        [...]
    ]
]

You can then pass this array to ConfigFactory::fromArray function.

$conf = \Zwijn\Config\ConfigFactory::fromArray($array);

Build system requirements

You need docker and GNU make.

Tests

Run below command

make test

License

See the license file.

Acknowledgement

Inspiration for this library is taken from Zend\Config. I encourage you to take a look at their software.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL3.0
  • 更新时间: 2017-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固