PHP code example of agence-adeliom / lumberjack-cli
1. Go to this page and download the library: Download agence-adeliom/lumberjack-cli 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/ */
agence-adeliom / lumberjack-cli example snippets
// config/commands.php
return [
'commands' => [
MyCommand::class,
],
];
namespace MyNamespace;
use Adeliom\WP\CLI\Commands\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ControllerMake extends Command
{
protected $signature = 'test:command {paramName : The description of the parameter}';
protected $description = 'A description of the command';
protected function execute(InputInterface $input, OutputInterface $output)
{
// Command implementation
}
}
php console list