PHP code example of sbooker / console
1. Go to this page and download the library: Download sbooker/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/ */
sbooker / console example snippets
use Sbooker\Console\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ConcreteCommand extends Command
{
// Define command. See [Symfony Console Component](https://symfony.com/doc/current/components/console.html)
protected function doExecute(InputInterface $input, OutputInterface $output) : void {
// .... do something successful ....
}
}