Download the PHP package henderjon/flags without Composer
On this page you can find all versions of the php package henderjon/flags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download henderjon/flags
More information about henderjon/flags
Files in henderjon/flags
Download henderjon/flags
More information about henderjon/flags
Files in henderjon/flags
Vendor henderjon
Package flags
Short Description a flag parser
License BSD-3-Clause
Homepage http://github.com/henderjon/flags
Package flags
Short Description a flag parser
License BSD-3-Clause
Homepage http://github.com/henderjon/flags
Please rate this library. Is it a good library?
Informations about the package flags
flags
Flags takes an object, parses it's properties and methods and evaluates a given array (e.g. $argv) and populates the object with the given array.
Flags uses Attributes to parse/echo documentation.
For example usage, see the example
special cases
- To set a bool true simply use it (e.g.
-var). To set it's value it is required to use the equal sign (e.g. -var=false) -helpor--helpwill always print DocStings- when combing custom types, nullables, default values, and shadow methods, it can be tricky to make sure that everything that OUGHT to be nullable, is so
- errors/exception in the vein of
Argument #1 ($v) must be of type $TYPE, null giventhat means that the expected type of the property, shadow function parameter, and shadow function return type don't match. Specifically, nullable types require everything else to be nullable, especially when it's a complex type that is nullable and defaults to null as a value.
All versions of flags with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-ctype Version *
ext-ctype Version *
The package henderjon/flags contains the following files
Loading the files please wait ...