1. Go to this page and download the library: Download molovo/graphite 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/ */
molovo / graphite example snippets
$graphite = new Molovo\Graphite\Graphite;
echo $graphite->green->underline('I believe in unicorns!');
$box = new Box('Unicorns!', [
'borderColor' => Graphite::WHITE, // The color of the border (and title)
'borderStyle' => Box::SINGLE, // The border style
'marginX' => 0, // The number of characters to add to left and right
'marginY' => 0, // The number of lines to add above and below
'paddingX' => 0, // The number of characters to add as left and right padding
'paddingY' => 0, The number of lines to add as top and bottom padding
]);