Skip to content

marko-php/marko-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/cli

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

About

[READ-ONLY] Marko Framework CLI. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages