PHP Classes

How to Implement a PHP CLI Arguments Parser To Pass Arrays or Objects to PHP Console Commands - strargs package blog

Recommend this page to a friend!
  All package blogs All package blogs   strargs strargs   Blog strargs package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement a PH...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Package: strargs

Command-line scripts that can run from an operating system console of a computer can take a list of parameters as a string passed in the front of the command name.

Usually, this string is processed to extract the parameter names and the values.

This package can extract the values of parameters passed as a string. It can also extract the values of parameters of more complex types like arrays or objects. It can decode parameter values that may be passed using the JSON format.




Loaded Article

About the strargs Package

The package strargs 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: Parse commands to get parameters of multiple types

Here follows in more detail what it does:

This package can parse commands to get parameters of multiple types.

It can take a command string and parses it to extract parameter values that can be strings, as well objects or arrays encoded using JSON.

The package can also compose a command string from the names and the values of the parameters.

Conclusion

The strargs 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

1,611,091 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:



Comments:

No comments were submitted yet.



  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   strargs strargs   Blog strargs package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Implement a PH...