Method |
Description |
|
getCallableIdentifier ( callable $variable ) : string |
Generates an unique identifier to a callable |
|
getCoreCount ( $recalculate = false ) |
|
|
getIP ( boolean $force = false ) : string |
Gets the External IP using an external service, it is cached |
|
getMachineUniqueId ( string $extra = "" ) : UUID |
Gets this machine / server instance unique ID
Returns a hash, the first 32 characters (or 16 if raw)
will be an identifier that won't change frequently. |
|
getMemoryUsage ( $advanced = false ) |
|
|
getOS ( $recalculate = false ) : string |
Returns the current Operating System
Windows => win
MacOS => mac
iOS => ios
Android => android
Linux => Linux
BSD => bsd
Other => other |
|
getRandomBytes ( integer $length = 16, boolean $secure = true, boolean $raw = true, string $startEntropy = "", &$rounds, &$drop ) : string |
This function tries to get all the entropy available in PHP, and distills it to get a good RNG. |
|
getRealMemoryUsage ( ) |
|
|
getThreadCount ( ) |
|
|
getURL ( $page, integer $timeout = 10, array $extraHeaders = [] ) : boolean | mixed |
GETs an URL using cURL |
|
hexdump ( string $bin ) : string |
Returns a prettified hexdump |
|
javaStringHash ( $string ) |
|
|
postURL ( $page, array | string $args, integer $timeout = 10, array $extraHeaders = [] ) : boolean | mixed |
POSTs data to an URL |
|
printable ( $str ) : string |
Returns a string that can be printed, replaces non-printable characters |
|