1. Go to this page and download the library: Download macocci7/bash-colorizer 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/ */
macocci7 / bash-colorizer example snippets
use Macocci7\BashColorizer\Colorizer;
Colorizer::echo("Hi, there!");
Colorizer::echo(" How's it going with you?", PHP_EOL);
Colorizer::echo("Hi, there!");
->echo(" How's it going with you?", PHP_EOL);
$colorizer = new Colorizer;
$colorizer->echo("Hi, there!")
->echo(" How's it going with you?", PHP_EOL);
// several ways
$colorizer = new Colorizer;
$colorizer = new Colorizer($config);
$colorizer = Colorizer::config($config);
$colorizer->config($config)
->echo("Hi, there!")
->echo(" How's it going with you?", PHP_EOL);