1. Go to this page and download the library: Download devsrealm/tonics-console 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/ */
devsrealm / tonics-console example snippets
evsrealm\TonicsConsole\ProcessCommandLineArgs;
$args = ['--name=John', '--age=30', '-v'];
$processArgs = new ProcessCommandLineArgs($args);
if ($processArgs->passes()) {
$parsedArgs = $processArgs->getProcessArgs();
print_r($parsedArgs);
} else {
echo "No valid arguments passed.";
}