1. Go to this page and download the library: Download web64/laravel-cli-colors 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/ */
web64 / laravel-cli-colors example snippets
use Web64\Colors\Facades\Colors;
Colors::red('Red Text');
Colors::light_blue('Light blue text');
Colors::bg_light_blue('Light blue background');
Colors::myStyle('Bold blue text with white background');
// Laravel-style output
Colors::info('Green text');
Colors::question('Black text on light blue background');
// Model changed styles
Colors::created("Green bg to indicate model was created");
Colors::updated("Yellow bg to indicate model was updated");
Colors::deleted("Red bg to indicate model was deleted");
Colors::bold()->red('Bold red text');
Colors::underline()->blue('Underlined blue text');
Colors::italic()->green('Italic green text');
Colors::reverse()->default('Reversed default text and background color');