Download the PHP package d0riven/php-flags without Composer

On this page you can find all versions of the php package d0riven/php-flags. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-flags

PHP Flags

This library is a parser of command line arguments that can be used sensibly without looking at the documentation.

Feature

Installation

todo write

Usage

Method chain declaration

example of ping command.
If you want to see other examples, see the script under examples/chain/.

Usage is automatically generated without any special configuration.

Since version is defined, you can check the version with --version flag.

Document

Support Type

Build flag and arg options

method name description
desc Set description.
default Set default value. If the default value is not specified, it is treated as a required flag (other bool).
validRule Set a callback that throws an exception as an invalid value if false is returned. Expected callback format is f($value) { return boolean; }
multiple Allow multiple option values. (e.g. If -f 1 -f 2 -f 3, get values [1, 2, 3])

Build flag additional option

method name description
short Enable short flag and set short flag name.

Help flag additional option

method name description
long Replace long flag name from "help".
short Replace short flag name from "h".
clearShort Disable short flag.

Version flag additional option

method name description
long Replace long flag name from "version".
short Replace short flag name from "v".
clearShort Disable short flag.

Custom help

Help is defined by default and the flags consist of --help and -h.
If these flags are specified on the command line, it will normally output a formatted help message and exit at parse time with status 0.
It is possible to change the flags and customize the behavior when they are specified.

If you want to see more info, see the script under examples/chain/customVersionHelp.php.

Changed the flag value from "help" to "show-help", short from "h" to "s", and the exit status code from "0" to "1".

Custom version

Changed the flag value from "version" to "ver", short from "v" to upper "V", and the exit status code from "0" to "1".


All versions of php-flags with dependencies

PHP Build Version
Package Version
Requires myclabs/php-enum Version ^1.7
twig/twig Version ^2.13
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package d0riven/php-flags contains the following files

Loading the files please wait ....