ulrichsg/phconf

受nconf启发的分层配置

dev-master 2016-03-01 13:39 UTC

This package is not auto-updated.

Last update: 2024-09-20 18:36:23 UTC


README

nconf启发的PHP分层配置

特性

  • 从多种来源导入配置
    • 文件(JSON、YAML、INI)
    • 环境变量
  • 设置可覆盖的默认值

安装

使用Composer通过composer require ulrichsg/phconf安装,或者手动将其添加到composer.json中。请注意,phconf需要PHP 5.6或更高版本。

用法

请参阅文档