stoffel / console-headline
Headline helper for Symfony Console using FIGlet Fonts
0.1.1
2020-11-30 18:15 UTC
Requires
- php: ^7.4
- laminas/laminas-text: ^2.7
- symfony/console: ^5.2
README
Helper to create FIGlet headlines with Symfony Console and Laminas Text.
Try examples
$ git clone git@github.com:chr-hertel/console-headline.git
$ cd console-headline
$ composer install
$ example/hello-world
Usage
$ composer require stoffel/console-headline
Usage in PHP
use Stoffel\Console\Headline\HeadlineHelper; HeadlineHelper::create($output) ->setText('Hello World!') ->setColor(new Color('#00FF00', '', ['bold'])) ->setFigletOptions([ 'font' => '/path/to/font.flf', ]) ->write();