Example of Console Application using Symfony Console Component at core.
You can install the package via composer:
composer require zorachka/console
Create a bin/app.php
file at root of your project with content below:
<?php
declare(strict_types=1);
use Zorachka\Console\Application;
/**
* Self-called anonymous function that creates its own scope and keeps the global namespace clean.
*/
(function () {
$application = new ConsoleApplication(
appName: 'My Console App',
catchExceptions: false,
commands: [],
);
$application->run();
})();
make test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.