WP Manifestindependent plugin directory

WpEnv

Environment-specific control for WordPress installs

★ 4stars
v0.2latest · 11 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/aaemnnosttv/wpenv/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

Releases

2 releases.

Tag
Published
v0.2 latest
Jul 31, 2015 11 years ago
Feb 3, 2015 11 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.