class Env (View source)

Methods

static bool
isLoaded()

Check if env is load

static void
load(string $filename)

Load env file

static mixed
get(string $key, mixed $default = null)

Retrieve information from the environment

static bool
set(string $key, mixed $value)

Allows you to modify the information of the environment

Details

static bool isLoaded()

Check if env is load

Return Value

bool

static void load(string $filename)

Load env file

Parameters

string $filename

Return Value

void

Exceptions

static mixed get(string $key, mixed $default = null)

Retrieve information from the environment

Parameters

string $key
mixed $default

Return Value

mixed

static bool set(string $key, mixed $value)

Allows you to modify the information of the environment

Parameters

string $key
mixed $value

Return Value

bool