Shell
class Shell (View source)
Methods
void
__construct()
Create a Shell instance for use CLI interface
array
arguments()
Get arguments
bool
hasArgs()
Check if using arguments
static bool
isCli()
Check if script is executed in CLI
static string|bool
input(int $length = 0)
Get input data
bool
observer(callable $callback)
Add callback event to input
Details
at line 22
void
__construct()
Create a Shell instance for use CLI interface
at line 46
array
arguments()
Get arguments
at line 56
bool
hasArgs()
Check if using arguments
at line 66
static bool
isCli()
Check if script is executed in CLI
at line 77
static string|bool
input(int $length = 0)
Get input data
at line 92
bool
observer(callable $callback)
Add callback event to input