public static function env($key, $value = null)
    {
        if (is_string($value) || is_bool($value) || is_numeric($value)) {
            self::$configs[$key] = $value;
        } elseif ($value === null && isset(self::$configs[$key])) {
            return self::$configs[$key];
        }
    }
public static function env($key, $value = null)
    {
        if (is_string($value) || is_bool($value) || is_numeric($value)) {
            self::$configs[$key] = $value;
        } elseif ($value === null && isset(self::$configs[$key])) {
            return self::$configs[$key];
        }
    }
public static function env ( $ key , $ value = null ) { if ( is_string ( $ value ) || is_bool ( $ value ) || is_numeric ( $ value ) ) { self :: $ configs [ $ key ] = $ value ; } elseif ( $ value === null && isset ( self :: $ configs [ $ key ] ) ) { return self :: $ configs [ $ key ] ; } }
Set or get environment value

@param string                $key
@param string|bool|int|float $value
@return string|bool|int|float|void
Set or get environment value