Class Salient\Utility\Env

final
extends AbstractUtility

Work with environment variables and .env files

Methods that get a value from the environment check $_ENV, $_SERVER and {@see getenv()}, and return the first value found. If it is not of the expected type, an {@see InvalidEnvironmentException} is thrown. If it is not present in the environment, $default is returned if given, otherwise an {@see InvalidEnvironmentException} is thrown.

Methods
Constants