Author: Manuel Lemos
Package: PHP Command Line Parser
Those scripts may take arguments passed by the users in front of the PHP script name.
PHP can create an array of arguments to make it easier for the scripts to process the parameters.
This package simplifies the processing of arguments by providing a means to call given functions to help developers process each type of argument separately.
About the PHP Command Line Parser Package
The package PHP Command Line Parser is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Invoke functions to process command-line arguments
Here follows in more detail what it does:
This package can invoke functions to process command-line arguments.
It can take as a parameter the $argv array passed to PHP as the array of command line arguments and an array that defines options on how to process those arguments.
The package can process the arguments by invoking a callback function that applications pass to process the command line argument values.
It can also call a given callback function to process when all arguments are processed and when no arguments are passed to the package.
Conclusion
The PHP Command Line Parser can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
Comments:
No comments were submitted yet.