Download the PHP package zzengineer/getoptc without Composer

On this page you can find all versions of the php package zzengineer/getoptc. 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 getoptc

getoptc

C style getopt for php

Latest Stable Version Total Downloads Latest Unstable Version License

NAME

getoptc -- get option character from command line argument list

SYNOPSIS

function getoptc($args, $optstring, &$optind, &$optarg, $opterr = true)

DESCRIPTION

The getoptc() function parses a given command line argument list and returns the next known option character. An option character is known if it has been specified in the string of accepted option characters, $optstring.

The option string may contain the following elements: individual characters, and characters followed by a colon to indiacte an option argument is to follow. If an individual character is followed by two colons, then the option argument is optional; $optarg is set to the rest of the current word. It does not matter to getoptc() if a following argument has leading whitespace.

On return from getoptc(), $optarg is set to an argument if it is anticipated or NULL instead. $optind contains the index to the next list argument for a subsequent call to getoptc().

The variable $optind is initialized to 1. The $optind variable may be set to another value before a set of calls to getoptc() in order to skip over more or less list entries.

The variable $opterr is intialized to true, and can be disabled to surpress error messages. see RETURN VALUES

RETURN VALUES

The getoptc() function returns the next kown option character in $optstring. If getopt() encounters a character not found in $optstring or if it detects a missing option argument, it returns ? (question mark). If $optstring has a leading : then a missing optin argument causes : to be returned instead of ?. In either case, the variable $optarg is set to the character that caused the error. The getoptc() function returns false when the argument list is exhausted. $optind will contain the index of the first non-option argument. Every subsequent call to getoptc() will return false and leave $optind and $optarg untouched.

EXAMPLES

DIAGNOSTICS

If the getoptc() function encounters a character not found in the string $optstring or detects a missing option argument it writes an error messages to STDERR. Setting $opterr to false will disable these error messages.

Option arguments are allowed to begin with -; this is reasonable but reduces the amount of error checking possible.

MISC


All versions of getoptc with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 zzengineer/getoptc contains the following files

Loading the files please wait ....