Skip to content

PHP class for using BoxDrawing (Unicode block) for CLI scripts or HTML.

License

Notifications You must be signed in to change notification settings

biesior/box-drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoxDrawer class

Donate Donate State Updated License

Features

PHP class for creating using BoxDrawing (Unicode block) for CLI scripts or HTML (data frame or table).

Usage

Basic usage is:

In PHP

<?php

    use BiesiorNunezTeam\BoxDrawer\BoxDrawer;
    require_once 'vendor/autoload.php';
    
    // ... your other code

    $boxDrawer = new BoxDrawer();
    $boxDrawer->drawBoxesForLines('Hello world!');

    // ... your other code

    //EOF

In terminal

Go 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.;

Contributors

About

PHP class for using BoxDrawing (Unicode block) for CLI scripts or HTML.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •  

Languages