NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1879 most downloaded on Packagist
Command line arguments parser for PHP 7.1 and above
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 2.2 years
Most releases are documented
notes for 20 of 31 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
41 releases · first in 2012
fix nullable parameters (many thanks to @AdamSGit )
Changelog:
add Catalan translations (many thanks to @playinteractive )
One column per quarter.
Version 4.0.3
Compare
add php 8.0 to compatibility list in composer.json
Changelog:
fix ArrayAccess signature compatibility in php 8.1 (mixed return value; see #171 )
Changelog:
drop support for php 5.x and add support for php 8
Changelog:
Nothing published for this version
This might be the last version 3 version as we might get rid of the php 5.x compatibility.
Nothing published for this version
Nothing published for this version
accept option arguments starting with a hypen when argument is required
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
php 5.3 support dropped (solves #72)
Features:
GetOptGetOptGetOpt::SETTING_* constants):*ArgGetOpt::MULTIPLE_ARGUMENT for parameter aggregation (solves #57)Command for kinda routing in console applications (solves #41)Operand for named operands and validation (solves #27)HelpInterface for custom help implementationsGetOpt::getHelpText() for better support of other features and customizationBugfixes:
GetOpt::count() returns the wrong value (solves #70)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
move documentation to master branch
Features:
don't show options when there are no options configured
Features:
Optional argument descriptions (courtesy of @sabl0r)
Features:
Bugfixes:
Added method to customize the help message (courtesy of @mfn)
Features:
Added setters for default values and validation to Option
Features:
Argument validation (courtesy of @jochenvdv)
Features:
Long options are required to be longer than 1 character
Bugfixes:
Options can be numeric (courtesy of @patinthehat)
Features:
ArrayAccess, Countable and Traversable support
Features:
Allow passing incomplete option arrays
Features:
Added help text printing functionality
Features:
Bugfixes:
Fixed bug where '0' could not be passed as an option value
Bugfixes:
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →