aubry/env-vars-debug-bundle

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

Symfony bundle to list all the environment variables used in parameter definitions

Maintainers

Package info

github.com/aubryfr/debug-env-vars-bundle

pkg:composer/aubry/env-vars-debug-bundle

Statistics

Installs: 796

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.1 2018-07-27 13:00 UTC

This package is not auto-updated.

Last update: 2026-03-11 00:31:08 UTC


README

Symfony bundle to list all the environment variables used in parameter definitions.

Any referenced environment variable will be listed :

  • unless it contains a transformer different to the following : "int", "string", "bool"
  • as mandatory unless an "env(*)" parameter is defined (see example)

Installation

composer require aubry/env-vars-debug-bundle

Register the bundle, in dev mode only :

$bundles[] = new Aubry\EnvVarsDebug\Bundle\EnvVarsDebugBundle();

Usage

bin/console aubry:debug:env-vars

Example

For the given parameters (YAML) definition :

parameters:
    param1: "%env(ENV_VAR_1)%"
    param2: "%env(int:ENV_VAR_2)%"
    env(ENV_VAR_3): "default value"
    param3: "%env(ENV_VAR_3)%"

the console command will output the following result :

 Variable                     Mandatory    Type
---------------------------  -----------  ------
 ENV_VAR_1                    true         string
 ENV_VAR_2                    true         int
 ENV_VAR_3                    false        string