PHP code example of codedungeon / php-cli-colors

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

    

codedungeon / php-cli-colors example snippets




odedungeon\PHPCliColors\Color;

echo Color::GREEN, 'Hello', Color::RESET, PHP_EOL;