ethnam / getopt
Getopt for Ethnam
v1.0.0
2015-05-05 03:34 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-21 18:32:11 UTC
README
re-invention of PEAR's Console_Getopt
INSTALL
In you composer.json
{ "require" : { "ethnam/getopt" : "1.*" } }
USAGE
use Ethnam\Getopt\Getopt; $opt = new Getopt(); $arg_list = $opt->readGlobalArgv(); array_shift($arg_list); // remove commant itself $opt->getopt($my_arg_list, "v", array("version"));
SEE ALSO
http://pear.php.net/manual/en/package.console.console-getopt.php