Back to Gems
sebastianbergmann/cli-parser(opens in a new tab)
Language: PHP
Library for parsing CLI options
- stars
- 1,207
- watchers
- 2
- forks
- 7
- open issues
- 1
- Last updated
- 10/30/2026
Language: PHP
Library for parsing CLI options
Library for parsing $_SERVER['argv'], extracted from phpunit/phpunit.
You can add this library as a local, per-project dependency to your project using Composer:
composer require sebastian/cli-parser
If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
composer require --dev sebastian/cli-parser