Definition at line 3 of file Rsi.php.
◆ commandLine()
Check if PHP is run from the command line.
- Returns
- bool
Definition at line 9 of file Rsi.php.
◆ memoryLimit()
Script memory limit.
- Returns
- int Maximum number of bytes.
Definition at line 51 of file Rsi.php.
◆ nothing()
Check if a value is empty.
- Parameters
-
- Returns
- bool True when empty.
Definition at line 59 of file Rsi.php.
◆ parseArgs()
Simple command line argument parser.
Supports values of form key=value (value is true when omitted). When the same key is encountered multiple times an array will be returned.
- Returns
- array Assoc.array with the key=value pairs from the command line arguments.
Definition at line 25 of file Rsi.php.
◆ version()
static version |
( |
|
$version | ) |
|
|
static |
Check PHP version.
- Parameters
-
string | $version | Version to compare to. |
- Returns
- bool True if the current PHP-version is greater or equal than the provided version.
Definition at line 44 of file Rsi.php.
◆ windows()
Check wether we are running on a Windows machine.
- Returns
- bool
Definition at line 16 of file Rsi.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/helpers/src/Rsi.php