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-10-29 06:12:03 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();