2017 © Pedro Peláez
 

library figlet

Figlet text generator - PHP

image

povils/figlet

Figlet text generator - PHP

  • Wednesday, May 23, 2018
  • by povils
  • Repository
  • 3 Watchers
  • 27 Stars
  • 3,164 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

Figlet text render

  ______ _       _      _              _____  _    _ _____  
 |  ____(_)     | |    | |            |  __ \| |  | |  __ \ 
 | |__   _  __ _| | ___| |_   ______  | |__) | |__| | |__) |
 |  __| | |/ _` | |/ _ \ __| |______| |  ___/|  __  |  ___/ 
 | |    | | (_| | |  __/ |_           | |    | |  | | |     
 |_|    |_|\__, |_|\___|\__|          |_|    |_|  |_|_|     
            __/ |                                          
           |___/                                                         

SensioLabsInsight Build Status Scrutinizer Code Quality Total Downloads License Build Status Coverage Status, (*1)

Installation

Available as Composer package povils/figlet., (*2)

composer require povils/figlet "dev-master"

What is this? And what is Figlet?

This is Php5 library which renders or outputs Figlet text in your console. Figlet is a computer program that generates text banners, in a variety of typefaces, composed of letters made up of conglomerations of smaller ASCII characters, (*3)

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Povils\Figlet\Figlet;

// Default font is "big"
$figlet = new Figlet();

//Outputs "Figlet" text using "small" red font in blue background.
$figlet
    ->setFont('small')
    ->setFontColor('red')
    ->setBackgroundColor('blue')
    ->write('Figlet');

//Returns rendered string.
$renderedFiglet = $figlet->render('Another Figlet')

- setFontDir(__DIR_ . '/fonts') // Change default font directory
- setFontStretching(3) // Add spaces between letters

Also there is figlet command line. Usage is quite straightforward.

    ./figlet 'some figlet text' --font block --color yellow
To make figlet executable from everywhere
  • (Linux and OSX) Symlink figlet script file to one of the $PATH (e.g /usr/local/bin/figlet)
For more options:
    figlet -h

The Versions

23/05 2018

dev-master

9999999-dev

Figlet text generator - PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Povilas Susinskas

php text github ascii figlet

15/12 2016

v1.0.0

1.0.0.0

Figlet text generator - PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Povilas Susinskas

php text github ascii figlet

18/04 2016

v0.1.0

0.1.0.0

Figlet text generator - PHP

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

by Povilas Susinskas

php text github ascii figlet