1. Go to this page and download the library: Download dxw/rubbishthorclone 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/ */
dxw / rubbishthorclone example snippets
HelloWorld extends RubbishThorClone {
};
class HelloWorld extends RubbishThorClone {
public function commands() {
$this->command('hello NAME', 'say hello to NAME');
}
public function hello($name) {
echo "Hi, $name!\n";
}
};
public function commands() {
$this->command('hello NAME', 'say hello to NAME', function($option_parser) {
$option_parser->addHead("Says hello to a person.\n");
$option_parser->addRule('s|sexy', "Congratulates NAME on their sexy face");
});
}
public function hello($name) {
echo "Hi, $name!\n";
if(isset($this->options->sexy)) {
echo "You have a very sexy face. Congratumalations.\n";
}
}
$hello = new HelloWorld();
$hello->start($argv);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.