aSQL CLI: Parse and extract a command line arguments string

Recommend this page to a friend!
  Info   Example   Demos   View files (16)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 170 This week: 1All time: 8,610 This week: 255
Version License PHP version Categories
asql-cli 1.0.16BSD License5.3PHP 5, Console, Parsers
Description Author

This class can parse and extract a command line arguments string.

It takes a string with the arguments of a command and it parses it to extract the command options, flags and argument values.

The class returns as result an array with the values of each option, flag, or argument.

It can also rebuild the command line from the array of the parse results, so the command line parameters can be edited and rebuild from the edited parameters array.

Innovation Award
PHP Programming Innovation award nominee
February 2015
Number 7

Prize: One downloadable copy of CodeLobster Professional
Many applications started from a command line shell need a way to parse and extract the command values passed to them.

This class not only can parse command line arguments, but also can rebuild a command line string using previously parsed commands.

This allows implementing a way to edit command lines programmatically but changing the values of a parsed command line and rebuilding the command line string from the changed values.

Manuel Lemos
Picture of Till Wehowski
  Performance   Level  
Name: Till Wehowski <contact>
Classes: 24 packages by
Country: Germany Germany
Age: 41
All time rank: 114675 in Germany Germany
Week rank: 131 4 in Germany Germany
Innovation award
Innovation award
Nominee: 8x

File Role Description
Command (9 files)
lib (1 directory)
CLI.php Class Base class
Console.php Example Example implementation
example.php Example Example Lic. License
Test.php Example Example

  Files  /  Command  
File Role Description
   CMD.php Example Example Command Class
   cnf.php Example Example script
   frdl.php Example Example script
   html.php Example Example script
   install.php Example Example script
   logout.php Example Example script
   pm.php Example Example script
   setup.php Example Example script
   utest.php Example Example script

  Files  /  lib  
File Role Description
frdl (1 directory)

  Files  /  lib  /  frdl  
File Role Description
aSQL (1 directory)

  Files  /  lib  /  frdl  /  aSQL  
File Role Description
Engines (1 directory)

  Files  /  lib  /  frdl  /  aSQL  /  Engines  
File Role Description
Terminal (2 files)

  Files  /  lib  /  frdl  /  aSQL  /  Engines  /  Terminal  
File Role Description
   CLI.php Class abstract base class
   Test.php Class Test

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:8,610
This week:255

For more information send a message to info at phpclasses dot org.