PHPackages                             gurubob/ascii-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. [Templating &amp; Views](/categories/templating)
4. /
5. gurubob/ascii-table

ActiveProject[Templating &amp; Views](/categories/templating)

gurubob/ascii-table
===================

Simple ASCII output of array data

v0.2.2(6y ago)28472WTFPLPHPPHP &gt;=5.5CI failing

Since Nov 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/gurubobnz/ascii-table)[ Packagist](https://packagist.org/packages/gurubob/ascii-table)[ RSS](/packages/gurubob-ascii-table/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Simple ASCII Table Generator
============================

[](#simple-ascii-table-generator)

Features
--------

[](#features)

- Create tables suitable for CLI output quickly
- No external dependencies

View/run example.php for examples. This file is the output of that script:

```
Create table via constructor:
┌───────────────────┬─────────────┐
│ Name              │ Country     │
├───────────────────┼─────────────┤
│ Bob Brown         │ New Zealand │
│ Wolfgang Puck     │ America     │
│ Winston Churchill │ England     │
└───────────────────┴─────────────┘

Create table via OO interfaces:
┌───────────────────┬───────────────┐
│ Sales Agent       │ Travelling To │
├───────────────────┼───────────────┤
│ Bob Brown         │ New Zealand   │
│ Wolfgang Puck     │ America       │
│ Winston Churchill │ England       │
└───────────────────┴───────────────┘

Output same table with different headers (reusing defined table):
┌───────────────────┬─────────────────────┐
│ Favourite Person  │ County Of Residence │
├───────────────────┼─────────────────────┤
│ Bob Brown         │ New Zealand         │
│ Wolfgang Puck     │ America             │
│ Winston Churchill │ England             │
└───────────────────┴─────────────────────┘

ASCII borders instead of box:
+-------------------+---------------------+
| Favourite Person  | County Of Residence |
+-------------------+---------------------+
| Bob Brown         | New Zealand         |
| Wolfgang Puck     | America             |
| Winston Churchill | England             |
+-------------------+---------------------+
Note: Made a copy() so that the following header would retain box format.

Table with no headers:
┌───────────────────┬─────────────┐
│ Bob Brown         │ New Zealand │
│ Wolfgang Puck     │ America     │
│ Winston Churchill │ England     │
└───────────────────┴─────────────┘

Create by chaining setters and adding individual rows:
╔══════════╦═══════╗
║ Product  ║ Price ║
╠══════════╬═══════╣
║ Apples   ║ $1.29 ║
║ Bananas  ║ $1.69 ║
║ Cherries ║ $2.99 ║
╚══════════╩═══════╝

Create by passing a collection (an array of arrays) as the first parameter:
┌─────────────────┬──────────┬─────────────────────┐
│ name            │ language │ timezone            │
├─────────────────┼──────────┼─────────────────────┤
│ Bob Brown       │ English  │ Pacific/Auckland    │
│ Roberto Collazo │ Spanish  │ America/Mexico_City │
│ Naya Yasotaro   │ Japanese │ Asia/Tokyo          │
└─────────────────┴──────────┴─────────────────────┘

Exclude the name column (via except()):
┌──────────┬─────────────────────┐
│ language │ timezone            │
├──────────┼─────────────────────┤
│ English  │ Pacific/Auckland    │
│ Spanish  │ America/Mexico_City │
│ Spanish  │ America/Mexico_City │
└──────────┴─────────────────────┘

Only show the name and timezone column (via only()):
┌─────────────────┬─────────────────────┐
│ name            │ timezone            │
├─────────────────┼─────────────────────┤
│ Bob Brown       │ Pacific/Auckland    │
│ Roberto Collazo │ America/Mexico_City │
│ Roberto Collazo │ America/Mexico_City │
└─────────────────┴─────────────────────┘

Note: Use of only() and except() are mutually exclusive - setting one will unset the other

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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 ~65 days

Recently: every ~112 days

Total

8

Last Release

2282d ago

PHP version history (3 changes)v0.0.1PHP &gt;=7.1

v0.0.2PHP &gt;=5.6

v0.0.3PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebb3ee88e5c3d728042e5ba8eb2fae29e1ae29bbf21fb1a9f010e235af4ed7c0?d=identicon)[gurubob](/maintainers/gurubob)

---

Top Contributors

[![gurubobnz](https://avatars.githubusercontent.com/u/2483482?v=4)](https://github.com/gurubobnz "gurubobnz (16 commits)")

---

Tags

composerpackagetemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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