src/EnvConfig.php
public function get(string $key, $default = null)
    {
        $k = $this->keyConvert($key);
        $v = getenv($k);
        return $v !== false ? $v : $default;
    }
public function get(string $key, $default = null)
    {
        $k = $this->keyConvert($key);
        $v = getenv($k);
        return $v !== false ? $v : $default;
    }
public function get ( string $ key , $ default = null ) { $ k = $ this -> keyConvert ( $ key ) ; $ v = getenv ( $ k ) ; return $ v !== false ? $ v : $ default ; }
Fetches an environment variable.

@param string $key
@param mixed $default

@return mixed|null
Environment vars are always string.
The default may be of any type.

@throws InvalidArgumentException
Propagated.
Fetches an environment variable .