GithubHelp home page GithubHelp logo

figlet's Introduction

Figlet text render

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

SensioLabsInsight Build Status Scrutinizer Code Quality Total Downloads License Build Status Coverage Status

Installation

Available as Composer package povils/figlet.

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

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

figlet's People

Contributors

povils avatar pinciukas1991 avatar jonathanmaron avatar peter279k avatar

Stargazers

hose36966 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.