1. Go to this page and download the library: Download gabbro-php/base 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/ */
gabbro-php / base example snippets
$arg = new stdClass();
$arg->Parser = new ArgV($argv);
$arg->Parser->parseAll(
$arg->help = Flag::withDescription(
"Show this help section.",
"--help", "-h"
),
$arg->debug = Flag::withDescription(
"Create a debug output.",
"--debug"
),
$arg->name = Option::withDescription(
"NAME",
"Set the output name.",
"--name"
),
$arg->dirs = ArrayOption::withDescription(
"PATH",
"Add one or more directories.",
"--dir"
)
$arg->dirs = Operand::withDescription(
"Action",
"Perform action such as Action1 and Action2.",
0
)
);
if ($arg->help->isSet() || !$arg->Parser->isConsumed()) {
echo $arg->Parser->buildHelp("Usage: ". $arg->Parser->cmd ." <Options> Action");
exit;
}
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.