Download the PHP package ulrichsg/getopt-php without Composer
On this page you can find all versions of the php package ulrichsg/getopt-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ulrichsg/getopt-php
More information about ulrichsg/getopt-php
Files in ulrichsg/getopt-php
Download ulrichsg/getopt-php
More information about ulrichsg/getopt-php
Files in ulrichsg/getopt-php
Vendor ulrichsg
Package getopt-php
Short Description Command line arguments parser for PHP 7.1 and above
License MIT
Homepage http://getopt-php.github.io/getopt-php
Package getopt-php
Short Description Command line arguments parser for PHP 7.1 and above
License MIT
Homepage http://getopt-php.github.io/getopt-php
Please rate this library. Is it a good library?
Informations about the package getopt-php
GetOpt.PHP
GetOpt.PHP is a library for command-line argument processing. It supports PHP version 7.1 and above.
Releases
For an overview of the releases with a changelog please have look here: https://github.com/getopt-php/getopt-php/releases
Features
- Supports both short (e.g.
-v
) and long (e.g.--version
) options - Option aliasing, ie. an option can have both a long and a short version
- Cumulative short options (e.g.
-vvv
) - Two alternative notations for long options with arguments:
--option value
and--option=value
- Collapsed short options (e.g.
-abc
instead of-a -b -c
), also with an argument for the last option (e.g.-ab 1
instead of-a -b 1
) - Two alternative notations for short options with arguments:
-o value
and-ovalue
- Quoted arguments (e.g.
--path "/some path/with spaces"
) for string processing - Options with multiple arguments (e.g.
--domain example.org --domain example.com
) - Operand (positional arguments) specification, validation and limitation
- Command routing with specified options and operands
- Help text generation
- Default argument values
- Argument validation
Upgrading
If you are still using a legacy version of GetOpt.PHP, please consider upgrading to version 3.
Only a few adjustments to your code are required to benefit from a lot of improvements. Refer to the upgrade guide for details.
Documentation
License
GetOpt.PHP is published under the MIT License.
All versions of getopt-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1 || ^8.0
ext-mbstring Version *
ext-mbstring Version *
The package ulrichsg/getopt-php contains the following files
Loading the files please wait ....