Zero Dependencies
Built entirely from scratch without relying on Symfony Console or other frameworks
A standalone PHP CLI framework built from scratch without dependencies
<?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;
}
}composer require marwen-brini/yallaMIT ยฉ 2025 Marwen-Brini