Download the PHP package stk2k/argparser without Composer
On this page you can find all versions of the php package stk2k/argparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download stk2k/argparser
More information about stk2k/argparser
Files in stk2k/argparser
Download stk2k/argparser
More information about stk2k/argparser
Files in stk2k/argparser
Vendor stk2k
Package argparser
Short Description Parser for command line options
License MIT
Homepage https://github.com/stk2k/argparser
Package argparser
Short Description Parser for command line options
License MIT
Homepage https://github.com/stk2k/argparser
Please rate this library. Is it a good library?
Informations about the package argparser
Parser for command line options
Description
Parser for command line options
Feature
- No need to setup complex configuration
- short options: -abc means a/b/c switches(returns [a=>true, b=>true, c=>true])
- long options: --a-key value/--a-key=value returns associative array(['a-key'=>value])
- ordered options: "command a b c" returns ordered array([a, b, c])
Parameters
arg name | explain |
---|---|
$args | specify arguments(if omitted, global $argv is used) |
$required | specify required options |
$defaults | specify option default values |
Demo
[01] Parse command line
Requirement
PHP 7.2 or later
Installing stk2k/argparser
The recommended way to install stk2k/argparser is through Composer.
After installing, you need to require Composer's autoloader:
License
Author
Disclaimer
This software is no warranty.
We are not responsible for any results caused by the use of this software.
Please use the responsibility of the your self.
All versions of argparser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package stk2k/argparser contains the following files
Loading the files please wait ....