Download the PHP package jawira/mini-getopt without Composer
On this page you can find all versions of the php package jawira/mini-getopt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mini-getopt
Mini Getopt (a getopt wrapper)
Very simple wrapper for getopt()
function.
Usage
This is only a wrapper, therefore the output from mini-getopt
is going to be
the same as getopt()
function.
-
First you have to instantiate
\Jawira\MiniGetopt\MiniGetopt
. -
Then you have to configure options you want to use. To do so use the following methods:
MiniGetopt::addRequired
.MiniGetopt::addOptional
.MiniGetopt::addNoValue
.
-
To retrieve values you have to call one of the following method:
MiniGetopt::getopt
returns the same asgetopt()
. Optionally you can pass$optind
parameter.MiniGetopt::getOption
to get only one value.MiniGetopt::doc
get documentation.
Basic usage
PHP code:
Executing code:
optind
parameter
Generate doc
How to install
Contributing
If you liked this project, ⭐ star it on GitHub.
License
This library is licensed under the MIT license.
Packages from jawira
- jawira/emoji-catalog
- Get access to +3000 emojis as class constants.
- jawira/plantuml-encoding
- PlantUML encoding functions.
- jawira/case-converter
- Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.
- more...
All versions of mini-getopt with dependencies
PHP Build Version
Package Version
The package jawira/mini-getopt contains the following files
Loading the files please wait ....