henderjon / chevron-argv
an OOP way to parse an $argv array
v4.0.2
2017-02-24 17:06 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- henderjon/drop: ~1
- phpunit/phpunit: ~4.0
README
Argv is a class to parse an ARGV style array. It will parse an array for -flags and -key=value pairs. It supports the following syntax: "-f" "-flag" "-key=value" "-key value". Using one or more dashes has no effect.
Peruse the tests or, if present, the examples directory to see usage.
See packagist for version/installation info.