HasInput Trait
Aurora\Console Namespace
Methods
getString
Read an string from the terminal
Parameters
-
string
$prompt
— Text to show to the user, optional -
bool
$hidden
— Whether to hide the input or not
Return Value
string
Signature
public function getString(string $prompt = '', bool $hidden): string
getKey
Read a key from the terminal
Parameters
-
array
$keys
— Array of valid keys, optional -
string
$prompt
— Text to show to the user, optional
Return Value
string
Signature
public function getKey(array $keys = [], string $prompt = ''): string