sebastian/cli-parser
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
Sebastian/cli-parser is a powerful, feature-rich PHP package that simplifies the process of parsing CLI options. This library, extracted from phpunit/phpunit
, is designed specifically to parse $_SERVER['argv']
, offering users a streamlined, efficient means to achieve this. Complete with CI Status, Type Coverage and Codecov integrations, users are assured of a robust and reliable CLI parsing solution, with consistent updates and improvements.
To use the sebastian/cli-parser library, first, you must install it into your PHP project. It is recommended to use Composer, an application-level PHP dependency management tool. You can install sebastian/cli-parser as a local, per-project dependency in your PHP project with the following composer command:
composer require sebastian/cli-parser
If this library is only required during development, for example, to run your project's test suite, then it should be added as a development-time dependency. This can be done using the following composer command:
composer require --dev sebastian/cli-parser
After successfully installing the library, you can start using it in your PHP scripts to parse CLI options.
Please note: The code usage examples were requested but the given readme content does not provide any examples or details on how to use the sebastian/cli-parser library.
The sebastian/cli-parser documentation can be found on the library's GitHub page. This comprehensive resource includes all the necessary information on how the library works, along with the latest updates and improvements. Although the readme does not provide the specifics for usage, most Github repositories often have their detailed documentation in the Wiki section, Readme file or the associated official website. Due to the lack of exact documentation location in the provided readme file, you may refer to the sebastian/cli-parser GitHub repository for more information.