Download the PHP package zozlak/argparse without Composer
On this page you can find all versions of the php package zozlak/argparse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zozlak/argparse
More information about zozlak/argparse
Files in zozlak/argparse
Download zozlak/argparse
More information about zozlak/argparse
Files in zozlak/argparse
Vendor zozlak
Package argparse
Short Description A humble PHP clone of Python's argparse library
License MIT
Homepage https://github.com/zozlak/argparse
Package argparse
Short Description A humble PHP clone of Python's argparse library
License MIT
Homepage https://github.com/zozlak/argparse
Please rate this library. Is it a good library?
Informations about the package argparse
Argparse
A humble PHP clone of Python's argparse.
Used to reduce my cognitive workload when switching between Python and PHP.
Implements only primary set of argparse features (see below) but strictly follows Python's argparse behavior.
API documentation
See the argparse docs with the following remarks:
- ArgumentParser constructor
supports only
prog
,description
,epilog
andexit-on-error
parameters.- Argument abbreviations are not implement.
- Almost all features of the add_argument() method are implemented.
Known discrepancies include:- If you want to define many names for a given argument, pass them as an array to the
name
parameter (it's impossible to implement it in PHP in exactly the same way it works in Python as PHP handles positional/named parameters in a slightly different way). - Lack of support for
%(prog)s
placeholder in thehelp
parameter. - Lack of support for
metavar
parameter being an array.
- If you want to define many names for a given argument, pass them as an array to the
- All features described under other utilities are not implemented.
All versions of argparse with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package zozlak/argparse contains the following files
Loading the files please wait ....