View the Project on GitHub getopt-php/getopt-php
GetOpt.php is a command-line argument processor for PHP 5.4 and above. It started out as an object-oriented
replacement for PHP’s own getopt() method,
but has since evolved to become significantly more powerful.
-v) and long (e.g. --version) options-vvv)--option value and --option=value-abc instead of -a -b -c), also with an argument for the last option
(e.g. -ab 1 instead of -a -b 1)-o value and -ovalue--path "/some path/with spcaces") for string processing--domain example.org --domain example.com)