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, null $default = null)

Retrieve information from the environment

static mixed
set(string $key, null $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, null $default = null)

Retrieve information from the environment

Parameters

string $key
null $default

Return Value

mixed

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

Allows you to modify the information of the environment

Parameters

string $key
null $value

Return Value

mixed