stoffel/console-headline

Headline helper for Symfony Console using FIGlet Fonts

0.1.1 2020-11-30 18:15 UTC

This package is auto-updated.

Last update: 2024-03-29 04:45:34 UTC


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();