Download the PHP package bolk/text-figlet without Composer

On this page you can find all versions of the php package bolk/text-figlet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package text-figlet

Text_Figlet

PHP implementation of the FIGlet font format for rendering plain text as ASCII art.

Installation

Quick start

Fonts without a path are looked up in the bundled fonts/ directory. You can also pass a full path:

Layout modes

FIGlet supports three horizontal layout modes. The default comes from the font, but you can override it:

The same applies vertically when rendering multi-line input:

Word wrapping

Justification

Justification::Auto (the default) picks left for LTR fonts and right for RTL.

Paragraph mode

Treats single newlines as spaces (like word processors). Double newlines remain as line breaks:

Control files

FIGlet control files (.flc) are mapping tables that preprocess input before rendering. They are used for character remapping, encoding modes, and locale-specific input conversions:

Filters

Post-processing filters transform the rendered output. Inspired by TOIlet. Filters are applied in order after rendering and can be chained:

Available filters:

Filter Description
Filter::Crop Trim blank rows and columns
Filter::Flip Mirror horizontally
Filter::Flop Mirror vertically
Filter::Rotate180 Rotate 180 degrees
Filter::RotateLeft Rotate 90° counterclockwise
Filter::RotateRight Rotate 90° clockwise
Filter::Border Surround with a Unicode box border
Filter::Rainbow Rainbow ANSI color effect
Filter::Metal Metallic ANSI color effect

Color filters (Rainbow, Metal) output ANSI escape codes for terminal display.

Terminal width

Auto-detect the terminal width and use it for word wrapping:

Figlet::terminalWidth() checks COLUMNS, then TTY width via ioctl, then tput cols, then stty size, and defaults to 80.

HTML output

Html produces XHTML with <nobr>, <span>, &nbsp; — supports both foreground and background colors via style. Html3 produces a <table> with <tr><td><tt> rows — foreground via <font color>, background via <td bgcolor> — compatible with older HTML renderers and email clients. Color filters (Rainbow, Metal) are automatically converted from ANSI to the appropriate HTML tags in both modes.

Font formats

Colored TLF fonts

TLF fonts can embed ANSI color escape sequences. The library supports:

When parsing glyph lines, verbose 38;5;N / 48;5;N (256-color) and 38;2;R;G;B / 48;2;R;G;B (truecolor) are accepted as well as the compact numeric codes above.

Details: tools/TLF_COLOR_EXTENSIONS.md.

For colored fonts the library chooses the best output tier at runtime (first match wins):

The compact 256-color and truecolor ranges are Text_Figlet extensions. toilet continues to use only the 16-color subset and ignores the higher numeric codes. Standard TOIlet fonts are loaded as-is.

Emoji font example

Resetting color detection mid-process

The terminal tier is cached after the first call. If you change TERM, COLORTERM, or TERM_FEATURES inside a long-running process (e.g. in tests), call:

Bundled fonts

The bundle includes 318 fonts:

See fonts/THIRD_PARTY.md for the complete asset list and licensing notes.

Bundled control files: utf8.flc, hz.flc, frango.flc, jis0201.flc.

Compressed fonts and control files

Gzip is detected by the \x1f\x8b magic bytes for both fonts and .flc control files, not only by a .gz suffix (requires ext-zlib). Short font names without an extension are still resolved with .flf.gz / .tlf.gz in addition to .flf / .tlf.

ZIP archives are detected by the PK signature (requires ext-zip). If the archive has several members, a file named like the archive basename (archive.flf, archive.tlf, or archive.flc) is preferred; otherwise the first non-directory entry is used (FIGlet itself, via zipio.c, only reads that first local file record—no name-based lookup). TOIlet loads fonts through libcaca (caca_canvas_set_figfont); ZIP handling, if any, lives there—not in TOIlet’s own src/.

FIGlet standard compliance

Implements the FIGfont Version 2 specification:

Static analysis

Run all analyzers:


All versions of text-figlet with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bolk/text-figlet contains the following files

Loading the files please wait ...