\Songshenzong\SupportEnv

Class Env

Summary

Methods
Properties
Constants
env()
envNotEmpty()
value()
envSubstr()
envConversion()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

env()

env(string  $key, mixed  $default = null) : mixed

Gets the value of an environment variable.

Parameters

string $key
mixed $default

Returns

mixed —

envNotEmpty()

envNotEmpty(string  $key) : bool|mixed

Parameters

string $key

Returns

bool|mixed —

value()

value(mixed  $value) : mixed

Return the default value of the given value.

Parameters

mixed $value

Returns

mixed —

envSubstr()

envSubstr( $value) : bool

Parameters

$value

Returns

bool —

envConversion()

envConversion( $value) : bool|string|null

Parameters

$value

Returns

bool|string|null —