1. Go to this page and download the library: Download tivins/tui library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tivins / tui example snippets
use Tivins\Tui\RotatingColors;
use Tivins\Tui\Throbber;
echo RotatingColors::render('thinking...', $offset) . "\n";
$th = (new Throbber())
->message('thinking...')
->template('{spinner} {rotating_message}');
// call $th->tick() each frame; optional: $th->rotatingColorOffset()