Installation and commands
Requirements
Localzet Console 2.3.1 requires PHP 8.4.1 or later and Composer 2. The release is tested with Symfony Console 8.1.11 and 8.2.0.
composer require localzet/console:^2.3
Run an application
<?php
require __DIR__ . '/vendor/autoload.php';
$console = new localzet\Console\Console([
'name' => 'Example CLI',
'version' => '1.0.0',
]);
exit($console->run());
Extend localzet\Console\Commands\Command for an application command and define its $defaultName. installCommands($directory, $namespace) discovers command classes; check the package API before depending on discovery order.
Use the standard Symfony Console output in CI, redirected output, and non-interactive scripts. The optional full-screen renderer requires an interactive Unix terminal and a writable /dev/tty.
Release behavior
Version 2.3.1 retains the full-screen Localzet Server status dashboard and one-shot JSON output introduced in 2.3.0. It also fixes global help-option handling with Symfony Console 8.2. Check the resolved version with:
composer show localzet/console

