henderjon / chevron-argv
an OOP way to parse an $argv array
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/henderjon/chevron-argv
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.