class Parser (View source)
static array | parse(string $expression) Parse the given console command definition into an array. | |
static string | name(string $expression) Extract the name of the command from the expression. | |
static array | parameters(array $tokens) Extract all of the parameters from the tokens. | |
static InputArgument | parseArgument(string $token) Parse an argument expression. | |
static InputOption | parseOption(string $token) Parse an option expression. | |
static array | extractDescription(string $token) Parse the token into its token and description segments. |
Parse the given console command definition into an array.
Extract the name of the command from the expression.
Extract all of the parameters from the tokens.
Parse an argument expression.
Parse an option expression.
Parse the token into its token and description segments.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Console/Parser.html