typed-input

Typed Input

Type Coverage Latest Stable Version License

Installation

composer require michaelpetri/typed-input 

Usage

$typedInput = TypedInput::fromInput($input);

echo $typedInput->getOption('my-option')->asNonEmptyString();
echo $typedInput->getArgument('my-argument')->asInteger();

Available methods