PHP code example of 99designs / cliph
1. Go to this page and download the library: Download 99designs/cliph library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
99designs / cliph example snippets
$options = new \Cliph\Options($argv,array(
'--help,-h','--connect=NULL','--init=',':cmd'
));
// show help
if($options->has('-h','--help') || $options->errors())
{
$options->printErrors();
echo "\nusage: $argv[0] [..args] [cmd]\n\n";
echo " --connect <broker> : connect to broker, instead of localhost\n";
echo " --init <cmd> : command to run if cwd doesn't exist and needs initialization\n";
echo " --help -h : this documentation\n";
echo "\n";
exit(1);
}
echo $options->value('--connect');