PEAR  
Search package by name
 

Package Management
Package Management

 

Package Search
Package Search

 

Channel Management
Channel Management

 

Configuration
Configuration

 
Warning: This package management website is not protected with a password, this is a MAJOR security risk. Please read the README.
Package Console_GetoptPlus
Installed - no -
Latest 1.0.0RC1
License The BSD License
Summary Command-line option parser - Console Getopt+ (Getopt Plus)
Description This package is (1) a PHP5 port/rewrite of Console_Getopt, (2) with added functionalities, and (3) with a Web interface to run getopt-like shell commands through a browser (not implemented yet).

(1) Console_getoptPlus:getopt() is a replacement for Console_getopt:getopt().
Same for getopt2() and readPHPArgv(). It returns PEAR_Exception instead of PEAR_Error. Error messages are the same.

(2) GetoptPlus:getoptplus uses an array-based description of the command. It can generates the command usage/help automaticly. It can return the parsed options and parameters in an associative array. It can be set to accept option shortcut names.

Fully tested with phpUnit. Code coverage test close to 100%.

Usage is fully documented in docs/examples files.
Dependencies
PHP Version: 5.0 or newer
PEAR Package: pear.php.net/PEAR 1.4.0 or newer
Options
install Install package
More extra info Extended Package Information
manual pear.php.net Developer Documentation
manual pear.php.net Package Manual