PHPackages                             marcin-orlowski/text-table - 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. [CLI &amp; Console](/categories/cli)
4. /
5. marcin-orlowski/text-table

ActiveLibrary[CLI &amp; Console](/categories/cli)

marcin-orlowski/text-table
==========================

Fast and flexible PHP library for text tables.

2.8.1(1y ago)415.1k↓40.4%1[2 issues](https://github.com/MarcinOrlowski/php-text-table/issues)1MITPHPPHP ^8.1CI passing

Since Oct 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MarcinOrlowski/php-text-table)[ Packagist](https://packagist.org/packages/marcin-orlowski/text-table)[ Docs](https://github.com/MarcinOrlowski/php-text-table)[ RSS](/packages/marcin-orlowski-text-table/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (22)Used By (1)

Text Table
==========

[](#text-table)

```
..######.#####.##...##.######...######...#....#####..##....#####..
....##...##.....##.##....##.......##....###...##..##.##....##.....
....##...##......###.....##.......##...##.##..##..##.##....##.....
....##...####.....#......##.......##..##...##.#####..##....####...
....##...##......###.....##.......##..#######.##..##.##....##.....
....##...##.....##.##....##.......##..##...##.##..##.##....##.....
....##...#####.##...##...##.......##..##...##.#####..#####.#####..

```

Fast and flexible PHP library for text tables.

[![Latest Stable Version](https://camo.githubusercontent.com/330f31694f7e7994fb9de124999e4e5ad4ceb523fc433e6ddd0f6b3e0156df0f/687474703a2f2f706f7365722e707567782e6f72672f6d617263696e2d6f726c6f77736b692f746578742d7461626c652f76)](https://packagist.org/packages/marcin-orlowski/text-table)[![Total Downloads](https://camo.githubusercontent.com/9ec1698b3f1c6b80f903944bddaba918b71c300d141d867a78bdbc2d41fc82ce/687474703a2f2f706f7365722e707567782e6f72672f6d617263696e2d6f726c6f77736b692f746578742d7461626c652f646f776e6c6f616473)](https://packagist.org/packages/marcin-orlowski/text-table)[![License](https://camo.githubusercontent.com/e7c65f56900c0788dd924b45aca9e8160b2f95c237d2d095489039e58d356741/687474703a2f2f706f7365722e707567782e6f72672f6d617263696e2d6f726c6f77736b692f746578742d7461626c652f6c6963656e7365)](https://packagist.org/packages/marcin-orlowski/text-table)[![PHP Version Require](https://camo.githubusercontent.com/2d13036171138b1864372574937d8ad8e1d1072b419c6b2fff4306795c796cd4/687474703a2f2f706f7365722e707567782e6f72672f6d617263696e2d6f726c6f77736b692f746578742d7461626c652f726571756972652f706870)](https://packagist.org/packages/marcin-orlowski/text-table)

There's also a [Python version of this library](https://github.com/MarcinOrlowski/python-flex-text-table/).

---

Features
--------

[](#features)

1. Production ready,
2. Easy to use,
3. No additional dependencies,
4. [Documented](docs/README.md).

---

Usage examples
--------------

[](#usage-examples)

**NOTE:** For proper rendering in environments like web browsers, ensure you are using a monospace font or wrap the output in `` tags.

```
$table = new TextTable(['ID', 'NAME', 'SCORE']);
$table->addRows([
    [1, 'John', 12],
    [2, 'Tommy', 15],
]);
echo $table->renderAsString();
```

would produce nice text table:

```
┌────┬───────┬───────┐
│ ID │ NAME  │ SCORE │
├────┼───────┼───────┤
│ 1  │ John  │ 12    │
│ 2  │ Tommy │ 15    │
└────┴───────┴───────┘
```

Check docs for more [usage examples](docs/README.md).

---

License
-------

[](#license)

- Written and copyrighted ©2022-2025 by Marcin Orlowski &lt;mail (#) marcinorlowski (.) com&gt;
- Text Table is open-sourced software licensed under the [MIT license](https://opensource.org/license/mit)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~48 days

Recently: every ~140 days

Total

20

Last Release

390d ago

Major Versions

1.7.0 → 2.0.02022-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/8870db56c4a0f54e86e6d574b761bac8654795bdad7b52b3ccdb6a42f0d4af80?d=identicon)[MarcinOrlowski](/maintainers/MarcinOrlowski)

---

Top Contributors

[![MarcinOrlowski](https://avatars.githubusercontent.com/u/8041294?v=4)](https://github.com/MarcinOrlowski "MarcinOrlowski (219 commits)")

---

Tags

phpcliconsoletextasciitablephp8php8.3php82php81php84

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marcin-orlowski-text-table/health.svg)

```
[![Health](https://phpackages.com/badges/marcin-orlowski-text-table/health.svg)](https://phpackages.com/packages/marcin-orlowski-text-table)
```

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[alexwestergaard/php-ga4

PHP Library for Google Analytics 4 with Server Side Tagging

63144.7k1](/packages/alexwestergaard-php-ga4)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)

PHPackages © 2026

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