There is no license information available for the latest version (v0.3) of this package.

Environment-specific control over WordPress Options and more

Installs: 2 543

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 1

Open Issues: 0


v0.3 2018-10-10 15:47 UTC

This package is auto-updated.

Last update: 2024-04-11 03:29:52 UTC


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