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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vitkutny/ascii

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 3w ago

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 41% 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

4333d 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.3k72.7M764](/packages/nette-php-generator)[nette/component-model

⚛ Nette Component Model

28817.0M106](/packages/nette-component-model)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5275.9M121](/packages/symplify-monorepo-builder)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

911.7M6](/packages/nette-code-checker)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[shipmonk/input-mapper

Performant array-to-object mapper supporting generics, array shapes, optional fields and much more!

3030.9k](/packages/shipmonk-input-mapper)

PHPackages © 2026

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