class SysInfo (View source)

Library for extracting information about system memory and cpu.

Currently supports all Windows and Linux platforms

This code is based on the OS Classes from the phpsysinfo project (https://phpsysinfo.github.io/phpsysinfo/)

Constants

MEMORY_REGEXP

Methods

static string
getOs(string $phpOs = PHP_OS)

Returns OS type used for sysinfo class

static Base
get()

Gets SysInfo class matching current OS

Details

static string getOs(string $phpOs = PHP_OS)

Returns OS type used for sysinfo class

Parameters

string $phpOs

PHP_OS constant

Return Value

string

static Base get()

Gets SysInfo class matching current OS

Return Value

Base

sysinfo class