Class Salient\Utility\Env

final
extends AbstractUtility

Work with environment variables and .env files

{@see Env::get()}, {@see Env::getInt()}, etc. check $_ENV, $_SERVER and {@see getenv()} for a given variable and return the first value found. If the value is not of the expected type, an {@see InvalidEnvironmentException} is thrown. If the variable is not present in the environment, $default is returned if given, otherwise an {@see InvalidEnvironmentException} is thrown.

Methods
Constants