PHP code example of dklis / chalk-php

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

    

dklis / chalk-php example snippets



use Dklis\Chalk\Chalk;

// ...

// Foreground color
$redMessage = Chalk::red('A red message');

// Background color
$redBgMessage = Chalk::redBG('A message with red background');

// Transformations
$bold = Chalk::bold('A bold message');
$underline = Chalk::underline('An underlined message');


// Multiple transformations
$multiTransform = Chalk::transform('A message', 'blue', 'redBG', 'underscore', 'bold')


# Install as dependency
composer