PHP code example of nattreid / console
1. Go to this page and download the library: Download nattreid/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/ */
nattreid / console example snippets
class TridaSPrikazy extends CommandCollection {
/**
* Popis, zobrazi se v napovede
* @param string $promena i tento text se zobrazi v napovede
*/
public function prikaz($promena) {
$this->printLine('Provadim prikaz');
// php kod
}
}
bash
php index.php tridasprikazy:prikaz /promena=hodnota