PHP code example of sunnyflail / color-cli

1. Go to this page and download the library: Download sunnyflail/color-cli 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/ */

    

sunnyflail / color-cli example snippets


use SunnyFlail\Console\Console;
$string = "<r>This will be printed in red<_> while this will be in default color";
echo Console::apply($string);