aaemnnosttv/wpenv 问题修复 & 功能扩展

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

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

aaemnnosttv/wpenv

最新稳定版本:v0.3

Composer 安装命令:

composer require aaemnnosttv/wpenv

包简介

Environment-specific control over WordPress Options and more

README 文档

README

Environment-specific Control for WordPress

Inspired by phpdotenv for establishing environment variables, WPEnv allows WordPress-specific configuration at the environment level.

At present, WPEnv simply provides a way for manipulating WordPress options (get_option()), by hard-coding the values in a .wpenv.yml file.

Unlike Dotenv, WPEnv values are defined in a Yaml file, which allows us to store complex values like arrays, integers or boolean values, rather than just strings.

WPEnv modifies the return value of the options we want to control. Simple values are replaced by the values defined in .wpenv.yml.
Arrays are merged on top of the returned value (if it is an array), otherwise all defined values simply become the returned value.

Getting Started

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-07-31