Skip to content

Yalla CLIBuild powerful CLI applications with PHP

A standalone PHP CLI framework built from scratch without dependencies

Quick Example โ€‹

php
<?php

use Yalla\Commands\Command;
use Yalla\Output\Output;

class GreetCommand extends Command
{
    public function __construct()
    {
        $this->name = 'greet';
        $this->description = 'Greet someone';

        $this->addArgument('name', 'The name to greet', true);
        $this->addOption('yell', 'y', 'Yell the greeting', false);
    }

    public function execute(array $input, Output $output): int
    {
        $name = $this->getArgument($input, 'name');
        $message = "Hello, $name!";

        if ($this->getOption($input, 'yell')) {
            $message = strtoupper($message);
        }

        $output->success($message);

        return 0;
    }
}

Installation โ€‹

bash
composer require marwen-brini/yalla

Requirements โ€‹

  • PHP 8.1, 8.2, 8.3, or 8.4
  • Composer 2.0+

License โ€‹

MIT ยฉ 2025 Marwen-Brini

Released under the MIT License.