class System

Core system helper class

Constants

UNKNOWN

WINDOWS

LINUX

OSX

Methods

mixed
__call(string $name, array $arguments)

Call static methods from instance

static string|null
getNodeJsVersion()

Get nodejs version

static array
getStreamTransports()

Get registered socket transports

static mixed
getPhpConsoleVersion()

Get php console ver

static array
getSystemInfo()

Get system info

static string|null
getApacheVersion()

Get apache version

static array
getApacheModules()

Get apache modules

static void
setTimeLimit(integer $time)

Set script execution tile limit (0 - unlimited)

static string
getPhpVersion()

Return php version

array
getPhpExtensions()

Return php extensions list

static string|null
getPhpExtensionVersion(string $phpExtensionName)

Return php extension version

static boolean
hasPhpExtension(string $phpExtensionName)

Return true if php extension is instaed

static bool
hasPdoDriver(string $driverName)

Return true if PDO driver is installed

static array
getPdoDrivers()

Return PDO drivers list

static array
getStreamWrappers()

Return Stream wrappers

static bool
hasStreamWrapper(string $protocol)

Return true if stream wrapper are installed

static array
getBacktrace()

Get debug backtrace

static bool
isConsole()

Return true if script is run in console

static void
writeLine(string|null $text, string|null $eof = null)

Output text

static int
getOS()

Return OS

static string
getDefaultOutput()

Get default output

Details

at line 34
mixed __call(string $name, array $arguments)

Call static methods from instance

Parameters

string $name
array $arguments

Return Value

mixed

at line 44
static string|null getNodeJsVersion()

Get nodejs version

Return Value

string|null

at line 54
static array getStreamTransports()

Get registered socket transports

Return Value

array

at line 64
static mixed getPhpConsoleVersion()

Get php console ver

Return Value

mixed

at line 77
static array getSystemInfo()

Get system info

Return Value

array

at line 97
static string|null getApacheVersion()

Get apache version

Return Value

string|null

at line 107
static array getApacheModules()

Get apache modules

Return Value

array

at line 118
static void setTimeLimit(integer $time)

Set script execution tile limit (0 - unlimited)

Parameters

integer $time

Return Value

void

at line 128
static string getPhpVersion()

Return php version

Return Value

string

at line 138
array getPhpExtensions()

Return php extensions list

Return Value

array

at line 156
static string|null getPhpExtensionVersion(string $phpExtensionName)

Return php extension version

Parameters

string $phpExtensionName

Return Value

string|null

at line 169
static boolean hasPhpExtension(string $phpExtensionName)

Return true if php extension is instaed

Parameters

string $phpExtensionName

Return Value

boolean

at line 180
static bool hasPdoDriver(string $driverName)

Return true if PDO driver is installed

Parameters

string $driverName

Return Value

bool

at line 192
static array getPdoDrivers()

Return PDO drivers list

Return Value

array

at line 202
static array getStreamWrappers()

Return Stream wrappers

Return Value

array

at line 213
static bool hasStreamWrapper(string $protocol)

Return true if stream wrapper are installed

Parameters

string $protocol

Return Value

bool

at line 223
static array getBacktrace()

Get debug backtrace

Return Value

array

at line 233
static bool isConsole()

Return true if script is run in console

Return Value

bool

at line 245
static void writeLine(string|null $text, string|null $eof = null)

Output text

Parameters

string|null $text
string|null $eof

Return Value

void

at line 258
static int getOS()

Return OS

Return Value

int

at line 281
static string getDefaultOutput()

Get default output

Return Value

string