CLParser class Parse command-line arguments to array Installation $composer require uspilot/cmdline_parser Usage use \USPilot\CLParse; $args = CLParse::arguments($argv);