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    
Last Updated Ratings Unique User Downloads Download Rankings
2022-01-31 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 24 All time: 10,649 This week: 202Up
Version License PHP version Categories
clione 1.0GNU Lesser Genera...5PHP 5, Console
Description Author

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: 26 packages by
Country: Chile Chile
Age: 46
All time rank: 13683 in Chile Chile
Week rank: 211 Up1 in Chile Chile Up
Innovation award
Innovation award
Nominee: 12x

Winner: 2x

Details

CliOne

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

Changelog

  • 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 README.md 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  
 100%
Total:24
This week:0
All time:10,649
This week:202Up
For more information send a message to info at phpclasses dot org.