stoffel/console-gradient

Gradient Helper for Symfony Console Component

0.1.1 2020-11-30 18:16 UTC

This package is auto-updated.

Last update: 2024-11-29 06:10:16 UTC


README

Helper to handle gradient text with Symfony Console inspired by new features, gradient-string, tinygradient and TinyColor.

Try examples

$ git clone git@github.com:chr-hertel/console-gradient.git
$ cd console-gradient
$ composer install
$ example/demo
$ example/built-in

Usage

$ composer require stoffel/console-gradient

Usage in PHP

use Stoffel\Console\Gradient\GradientHelper;

GradientHelper::create($output)
    ->setText('Hello World!')
    ->setColors(['#FF0000', '#00FF00', '#0000FF'])
    ->write();