Global command-line tool --- run marko from any project directory to execute commands.
composer global require marko/cliuse Marko\Core\Attributes\Command;
use Marko\Core\Command\CommandInterface;
use Marko\Core\Command\Input;
use Marko\Core\Command\Output;
#[Command(name: 'greet', description: 'Say hello')]
class GreetCommand implements CommandInterface
{
public function execute(Input $input, Output $output): int
{
$output->writeLine('Hello, World!');
return 0;
}
}Full usage, API reference, and examples: marko/cli