nschwab/configmgr 问题修复 & 功能扩展

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

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

nschwab/configmgr

Composer 安装命令:

composer require nschwab/configmgr

包简介

A PHP configuration manager.

README 文档

README

ConfigMGR is a Configuration Manager for PHP. It is meant to remove all these old config.php files in a simple and efficient way.

Install with Composer

You can install this library with Composer.

composer require nschwab/configmgr 

Simple example

You can find a simple example in the /example/ directory.

String interpolation

String interpolation is possible within your config file. By using curly brackets "{ }", you can specify any variable or constants defined in your config. It will look for constants defined by the system before checking for configuration keys.

Example

{
    "constants": {
      "DB_NAME": "testDb",
      "SQL_USER": "root",
      "SQL_HOST": "localhost",
      "SQL_PASSWORD": "123456",
      "CONNECTION_STRING": "Server={SQL_HOST}; Database={DB_NAME}; User Id={SQL_USER}; Password={SQL_PASSWORD}",
      "VERSION": "v1.7.3-alpha {PHP_VERSION}"
    }
}

Features

  • Loading configuration from JSON
  • Creating variables from configuration
  • Defining constants from configuration
  • Format content of a configuration key with another
  • Format content of multiple configuration keys with another
  • Composer package
  • Search to format content with already defined constants
  • Custom markup
  • Crawl recursively through tables to format content with configuration keys
  • Crawl recursively through objects to format content with configuration keys
  • Load tables from CSV
  • Load objects from JSON
  • Monolog integration

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固