Screenshot of Environment Tokens module: settings (environment variables exposed as tokens)
Screenshot of Environment Tokens module: php environment variables parsing order
Screenshot of Environment Tokens module: excluded php environment variables

The module Environment Tokens provides tokens for environmental variables.

All the environment variables defined within PHP are identified and available to be used as tokens. The module allows to exclude variables so they will not be available as tokens.

Environment variables can be defined in different servers, either in the OS or in PHP (putenv() or defining them in settings.php).

Beware of the environment variables that are context dependent as they will change value depending on where they are used.

Project information

Releases