PHP code example of imponeer / composer-custom-commands
1. Go to this page and download the library: Download imponeer/composer-custom-commands 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/ */
imponeer / composer-custom-commands example snippets
5
namespace My\Commands;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
/**
* Your new command
*/
class DummyCommand extends Command
{
/**
* Here we can configure command name, options and arguments.
* We using here Symfony Command syntax.
*/
protected function configure()
{
}
/**
* Execute command
*
* @param InputInterface $input STDInput
* @param OutputInterface $output SRDOutput
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
}
}