PHP Classes

How to Implement a PHP CLI Arguments Parser using Cli One: Extract argument values passed to PHP shell script

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 26 All time: 10,882 This week: 189Up
Version License PHP version Categories
clione 1.0GNU Lesser Genera...5PHP 5, Console




This package can extract argument values passed to the PHP shell script.

It can take a list of definitions of the parameters that a command-line shell can be pass to a PHP script that runs from the console.

The package can extract the parameter values from the current command line arguments and return them to objects that applications can inspect.

Picture of Jorge Castro
  Performance   Level  
Name: Jorge Castro <contact>
Classes: 29 packages by
Country: Chile Chile
Age: 47
All time rank: 13183 in Chile Chile
Week rank: 118 Up1 in Chile Chile Up
Innovation award
Innovation award
Nominee: 13x

Winner: 2x



Packagist Total Downloads [Maintenance]() [composer]() [php]() [php]() [CocoaPods]()


  • 0.3 (2022-01-26) new corrections to the reading of values
  • 0.2 some updates
  • 0.1 first version
  Files folder image Files  
File Role Description
Files folder imageexample (1 file)
Files folder imagesrc (2 files)
Files folder imageTest (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  example  
File Role Description
  Accessible without login Plain text file example1.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file CliOne.php Class Class source
  Plain text file CliOneParam.php Class Class source

  Files folder image Files  /  Test  
File Role Description
  Plain text file CliOneTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,882
This week:189Up