PHPackages                             vitkutny/ascii - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vitkutny/ascii

ActiveLibrary

vitkutny/ascii
==============

v1.0.0(11y ago)114PHP

Since Aug 22Pushed 11y agoCompare

[ Source](https://github.com/vitkutny/ascii)[ Packagist](https://packagist.org/packages/vitkutny/ascii)[ RSS](/packages/vitkutny-ascii/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

```
   _|_|       _|_|_|     _|_|_|   _|_|_|   _|_|_|
 _|    _|   _|         _|           _|       _|
 _|_|_|_|     _|_|     _|           _|       _|
 _|    _|         _|   _|           _|       _|
 _|    _|   _|_|_|       _|_|_|   _|_|_|   _|_|_|

 _|_   _       _|_      ,_    _          _|    _   ,_    _   ,_
  |   |/  /\/   |      /  |  |/  /|/|   / |   |/  /  |  |/  /  |
  |_/ |_/  /\/  |_/       |/ |_/  | |_/ \/|_/ |_/    |/ |_/    |/

```

Usage
-----

[](#usage)

```
use VitKutny\Ascii\Text;

$text = new Text\Renderer('Hello world!');
$text->setFont(new Text\Font\Figlet(__DIR__ . '/fonts/figlet-font.flf');
$text->render(); //or echo $text;
```

Now this will work fine only in console. Because no `lineBreakWrapper` and `stringWrapper` are set.

Wrappers
--------

[](#wrappers)

Basic render in HTML tag ``:

```
$text->setStringWrapper(Text\Wrapper::el('pre'));
$text->setLineBreak(Text\Wrapper::el('br'));
```

Render ASCII text in table:

```
$text->setStringWrapper(Text\Wrapper::el('table'));
$text->setLineWrapper(Text\Wrapper::el('tr'));
$text->setPixelWrapper(Text\Wrapper::el('td'));
```

Using wrappers output will have some usefull classes e.g. for styling.

```

      ...

  ...

```

`CharacterLineWrapper` also has class containing ASCII number of the character, e.g. for letter A:

```

  ...

```

Console
-------

[](#console)

ASCII text renderer works like a charm in console by removing HTML tags and replacing `Text\Renderer::$lineBreak` by `PHP_EOL`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity63

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54e143259e582939a45cc2d3c1a76792bb31af48f7a5654ce0d2b119bb03dc08?d=identicon)[vitkutny](/maintainers/vitkutny)

### Embed Badge

![Health badge](/badges/vitkutny-ascii/health.svg)

```
[![Health](https://phpackages.com/badges/vitkutny-ascii/health.svg)](https://phpackages.com/packages/vitkutny-ascii)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[nette/caching

⏱ Nette Caching: library with easy-to-use API and many cache backends.

43518.6M368](/packages/nette-caching)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
