This repo is fork from
php-school/terminal
Small utility to help provide a simple, consist API for terminal interaction.
See examples to know how to use.
Hello world example:
$container = new Container();
$container->instance(Input::class, new InputStream());
$container->instance(Output::class, new OutputStream());
$terminal = (new Terminal($container))
->enableInstantOutput()
->bootstrap();
$terminal->clear();
$str = 'Hello world!';
$terminal->cursor()->center(-(mb_strlen($str) / 2))->write($str);
$terminal->cursor()->bottom();
The MIT License (MIT). Please see License File for more information.