PHPackages                             lucasjs7/simple-cli-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. lucasjs7/simple-cli-table

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

lucasjs7/simple-cli-table
=========================

A simple lib to render tables in php.

v1.04(2y ago)1811MITPHPPHP &gt;=8.0

Since Apr 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lucasjs7/simple-cli-table)[ Packagist](https://packagist.org/packages/lucasjs7/simple-cli-table)[ RSS](/packages/lucasjs7-simple-cli-table/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)DependenciesVersions (6)Used By (1)

Simple Render CLI Table for PHP
===============================

[](#simple-render-cli-table-for-php)

A simple lib to render tables in php.

### Example 1

[](#example-1)

```
# Code:
$data = [
	['First Name', 'Last Name', 'Age'],
	['Steve',      'Magal',     '37'],
	['Jorel',      'Seila',     '14'],
	['William',    'Shostners', '9'],
	['Carlos',     'Felino',    '39'],
];

echo SimpleCliTable::build($data);

# Output:
+------------+-----------+-----+
| First Name | Last Name | Age |
+------------+-----------+-----+
| Steve      | Magal     | 37  |
| Jorel      | Seila     | 14  |
| William    | Shostners | 9   |
| Carlos     | Felino    | 39  |
+------------+-----------+-----+
```

### Example 2

[](#example-2)

```
# Code:
$data = [
	['Steve',      'Magal',     '37'],
	['Jorel',      'Seila',     '14'],
	['William',    'Shostners', '9'],
	['Carlos',     'Felino',    '39'],
];

$simpleTableCli = new SimpleCliTable;
$simpleTableCli->setContainsHeader(false);

foreach ($data as $line) {
	$simpleTableCli->add($line);
}

echo $simpleTableCli->render();

# Output:
+---------+-----------+----+
| Steve   | Magal     | 37 |
| Jorel   | Seila     | 14 |
| William | Shostners | 9  |
| Carlos  | Felino    | 39 |
+---------+-----------+----+
```

Install using composer
----------------------

[](#install-using-composer)

```
composer require lucasjs7/simple-cli-table
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c77ff5dab6d4cd32486fa64c9f1b76fa91f6c0a5d7abda1103466349916e45c?d=identicon)[lucasjs](/maintainers/lucasjs)

---

Top Contributors

[![lucasjs7](https://avatars.githubusercontent.com/u/41204120?v=4)](https://github.com/lucasjs7 "lucasjs7 (18 commits)")

### Embed Badge

![Health badge](/badges/lucasjs7-simple-cli-table/health.svg)

```
[![Health](https://phpackages.com/badges/lucasjs7-simple-cli-table/health.svg)](https://phpackages.com/packages/lucasjs7-simple-cli-table)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)

PHPackages © 2026

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