PHP code example of bvanhoekelen / terminal-style

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

    

bvanhoekelen / terminal-style example snippets


 echo terminal_style($message = null, $color = null, $background = null, $style = null);

// Print red text 
echo terminal_style('Here your text', 'red');

// Print text with background red
echo terminal_style('Here your text', null, 'red');

// Print text style bold
echo terminal_style('Here your text', null, null, 'bold');

// Print red text 
echo terminal_style('Here your text', 'red');


// Require vender autoload
erminal_style('Here your text', 'red');