Documentation

Manager
in package

Environment Manager

Table of Contents

Properties

$envVariables  : array<string|int, mixed>
$request  : Request|null

Methods

__construct()  : mixed
canDebug()  : bool
check if debug is active and ip address is valid
getRequest()  : Request|null
Get the current request
getVariable()  : mixed
gets env variable
getVariables()  : array<string|int, mixed>
get env variables
isCli()  : bool
Check if the current environment is CLI
isCliServer()  : bool
Check if the current environment is CLI server
isDebugActive()  : bool
check if debug is active
isDocker()  : bool
Check if the current environment in on docker
isWeb()  : bool
Check if the current environment is web
loadDotEnv()  : self

Properties

$envVariables

protected array<string|int, mixed> $envVariables = []

$request

protected Request|null $request = null

Methods

__construct()

public __construct() : mixed

canDebug()

check if debug is active and ip address is valid

public canDebug() : bool
Return values
bool

getRequest()

Get the current request

public getRequest() : Request|null
Return values
Request|null

getVariable()

gets env variable

public getVariable(string $variable[, mixed $default = null ]) : mixed
Parameters
$variable : string
$default : mixed = null

getVariables()

get env variables

public getVariables() : array<string|int, mixed>
Return values
array<string|int, mixed>

isCli()

Check if the current environment is CLI

public isCli() : bool
Return values
bool

isCliServer()

Check if the current environment is CLI server

public isCliServer() : bool
Return values
bool

isDebugActive()

check if debug is active

public isDebugActive() : bool
Return values
bool

isDocker()

Check if the current environment in on docker

public isDocker() : bool
Return values
bool

isWeb()

Check if the current environment is web

public isWeb() : bool
Return values
bool

loadDotEnv()

protected loadDotEnv() : self
Return values
self

        
On this page

Search results