PHP code example of stoffel / console-gradient
1. Go to this page and download the library: Download stoffel/console-gradient 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/ */
stoffel / console-gradient example snippets
use Stoffel\Console\Gradient\GradientHelper;
GradientHelper::create($output)
->setText('Hello World!')
->setColors(['#FF0000', '#00FF00', '#0000FF'])
->write();