2017 © Pedro Peláez
 

library getopt-php

Command line arguments parser for PHP 5.4 - 7.1

image

ulrichsg/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  • Thursday, May 31, 2018
  • by tflori
  • Repository
  • 7 Watchers
  • 200 Stars
  • 250,311 Installations
  • PHP
  • 49 Dependents
  • 1 Suggesters
  • 49 Forks
  • 2 Open issues
  • 46 Versions
  • 11 % Grown

The README.md

GetOpt.PHP

.github/workflows/push.yml Test Coverage Maintainability Latest Stable Version Total Downloads License, (*1)

GetOpt.PHP is a library for command-line argument processing. It supports PHP version 7.1 and above., (*2)

Releases

For an overview of the releases with a changelog please have look here: https://github.com/getopt-php/getopt-php/releases, (*3)

Features

  • Supports both short (e.g. -v) and long (e.g. --version) options
  • Option aliasing, ie. an option can have both a long and a short version
  • Cumulative short options (e.g. -vvv)
  • Two alternative notations for long options with arguments: --option value and --option=value
  • Collapsed short options (e.g. -abc instead of -a -b -c), also with an argument for the last option (e.g. -ab 1 instead of -a -b 1)
  • Two alternative notations for short options with arguments: -o value and -ovalue
  • Quoted arguments (e.g. --path "/some path/with spaces") for string processing
  • Options with multiple arguments (e.g. --domain example.org --domain example.com)
  • Operand (positional arguments) specification, validation and limitation
  • Command routing with specified options and operands
  • Help text generation
  • Default argument values
  • Argument validation

Upgrading

If you are still using a legacy version of GetOpt.PHP, please consider upgrading to version 3., (*4)

Only a few adjustments to your code are required to benefit from a lot of improvements. Refer to the upgrade guide for details., (*5)

Documentation

License

GetOpt.PHP is published under the MIT License., (*6)

The Versions

31/05 2018

dev-master

9999999-dev http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

31/05 2018

3.2.0-alpha.1

3.2.0.0-alpha1 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

31/05 2018

3.2.0

3.2.0.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

31/05 2018

dev-docs32

dev-docs32 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

29/05 2018

3.1.x-dev

3.1.9999999.9999999-dev http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

29/05 2018

3.1.3

3.1.3.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-mbstring *

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

15/05 2018

dev-feature-operand-descriptions

dev-feature-operand-descriptions http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

15/05 2018

3.1.2

3.1.2.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

01/05 2018

3.1.1

3.1.1.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

01/05 2018

dev-fix-multiple-operands

dev-fix-multiple-operands http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

13/04 2018

dev-feature/validation-message

dev-feature/validation-message http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

09/04 2018

dev-feature/translation

dev-feature/translation http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

25/11 2017

3.1.0

3.1.0.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

08/11 2017

3.1.0-alpha.1

3.1.0.0-alpha1 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

06/11 2017

dev-getters

dev-getters http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

02/11 2017

3.0.3

3.0.3.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

02/11 2017

dev-fix-iterator

dev-fix-iterator http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

19/10 2017

dev-oop-help

dev-oop-help http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

29/08 2017

dev-update-documentation

dev-update-documentation http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

24/08 2017

3.0.2

3.0.2.0 http://getopt-php.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

23/08 2017

3.0.1

3.0.1.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

23/08 2017

dev-fix-requiredOperands

dev-fix-requiredOperands http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

18/08 2017

3.0.0

3.0.0.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

18/08 2017

dev-fix-unknownOperands

dev-fix-unknownOperands http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

07/08 2017

3.0.0-beta.1

3.0.0.0-beta1 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

05/08 2017

3.0.0-alpha.8

3.0.0.0-alpha8 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

02/08 2017

3.0.0-alpha.7

3.0.0.0-alpha7 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

30/07 2017

3.0.0-alpha.6

3.0.0.0-alpha6 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

28/07 2017

3.0.0-alpha.4

3.0.0.0-alpha4 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

26/07 2017

3.0.0-alpha.3

3.0.0.0-alpha3 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.4 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

02/07 2017

2.x-dev

2.9999999.9999999.9999999-dev http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

02/07 2017

2.4.3

2.4.3.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

01/07 2017

2.4.2

2.4.2.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3 - 7.1

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Thomas Flori
by Ulrich Schmidt-Goertz

07/04 2015

3.x-dev

3.9999999.9999999.9999999-dev http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

07/04 2015

v3.x-dev

3.9999999.9999999.9999999-dev http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

28/03 2015

2.3.0

2.3.0.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

13/09 2014

2.2.0

2.2.0.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

28/02 2014

2.1.0

2.1.0.0 http://ulrichsg.github.io/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

30/01 2014

2.0.0

2.0.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

13/12 2013

1.4.1

1.4.1.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

13/12 2013

1.4.0

1.4.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

07/12 2013

1.3.0

1.3.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

14/11 2013

1.2.0

1.2.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

19/06 2013

1.1.0

1.1.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

13/02 2013

1.0.1

1.0.1.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Ulrich Schmidt-Goertz

04/01 2012

1.0.0

1.0.0.0 http://github.com/ulrichsg/getopt-php

Command line arguments parser for PHP 5.3

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Ulrich Schmidt-Goertz