PHP class for creating using BoxDrawing (Unicode block) for CLI scripts or HTML (data frame or table).
Basic usage is:
<?php
use BiesiorNunezTeam\BoxDrawer\BoxDrawer;
require_once 'vendor/autoload.php';
// ... your other code
$boxDrawer = new BoxDrawer();
$boxDrawer->drawBoxesForLines('Hello world!');
// ... your other code
//EOFGo to directory where you downloaded the code i.e.:
cd /www/project/box-drawer
and run sample usages like
php public/sample-usage.php
Follow onscreen instructions to select required sample, you'll see output like:
You need to use this script with param(s) run the help for more info php public/sample-usage.php help
Available options:
php public/sample-usage.php boxes Samples for drawing boxes
php public/sample-usage.php charts Charts with BoxDrawing chcracters
php public/sample-usage.php colors For showing example how to color your data with ANSI
php public/sample-usage.php data-coloring BoxDrawer class doesn't color your data except of first header if set,
you need to do it yourself, you can use i.e. Ansi::colorize() method.
For more samples refer to public/sample-usage.php file and/or resources folder.;
- (c) 2020 Marcus Biesioroff [email protected]
- (c) 2020 Walter Francisco Núñez Cruz [email protected]