Search by

marko / cli

markshust

Marko Framework CLI

Package info

github.com/marko-php/marko-cli

pkg:composer/marko/cli

Statistics

Installs: 1 421

Dependents: 7

Suggesters: 0

Stars: 0

0.11.0 2026-10-06 01:14 UTC

README

Global command-line tool --- run marko from any project directory to execute commands.

Installation

composer global require marko/cli

Quick Example

use 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;
    }
}

Documentation

Full usage, API reference, and examples: marko/cli