PHPackages                             tomkyle/tabulate - 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. tomkyle/tabulate

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

tomkyle/tabulate
================

Format 2D arrays as CLI console table, Markdown, CSV, YAML, JSON.

1.1.1(11mo ago)05MITPHPPHP ^8.3CI passing

Since Jun 10Pushed 11mo agoCompare

[ Source](https://github.com/tomkyle/tabulate)[ Packagist](https://packagist.org/packages/tomkyle/tabulate)[ RSS](/packages/tomkyle-tabulate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

tomkyle/tabulate
================

[](#tomkyletabulate)

[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)[![Packagist](https://camo.githubusercontent.com/a850d9a9c6f09d1a8e28463350ff6d2a9d859eb4d58dbb0788699579181d5077/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6d6b796c652f746162756c6174652e7376673f7374796c653d666c6174)](https://packagist.org/packages/tomkyle/tabulate)[![PHP version](https://camo.githubusercontent.com/12edfdcd47ca8bc859be85d5db1c395500096b305e929ce9f2cfaf14f51bea72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f6d6b796c652f746162756c6174652e737667)](https://packagist.org/packages/tomkyle/tabulate)[![Tests](https://github.com/tomkyle/tabulate/actions/workflows/php.yml/badge.svg)](https://github.com/tomkyle/tabulate/actions/workflows/php.yml)

Format 2D arrays as CLI tables, Markdown, CSV, YAML, and JSON.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Symfony Console component for `SymfonyStyleTable`
- Symfony Yaml component for `YamlTable`

Installation
------------

[](#installation)

Install via Composer:

```
composer require tomkyle/tabulate
```

Quick Start
-----------

[](#quick-start)

```
composer require tomkyle/tabulate
```

```
use tomkyle\Tabulate\TableFactory;

$data = [
    ['Name' => 'Alice', 'Age' => 30],
    ['Name' => 'Bob',   'Age' => 25],
];

$factory = new TableFactory();
$factory->fromString('markdown')($data);
```

Features
--------

[](#features)

- **Multiple formats**: CLI, Markdown, CSV, YAML, JSON
- **Column alignment**: Auto-detection and manual override
- **Stream output**: Direct file writing, memory-efficient processing
- **Factory pattern**: Dynamic formatter creation for your CLI script with `--format` option support

Documentation
-------------

[](#documentation)

- [Basic Usage](docs/basic-usage.md)
- [Stream Output](docs/streams.md)
- [Column Alignment](docs/alignment.md)
- [API Reference](docs/api.md)
- [Contributing](docs/contributing.md)

License
-------

[](#license)

MIT License - see [LICENSE](LICENSE) file.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance51

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

342d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/412560?v=4)[Carsten Witt](/maintainers/tomkyle)[@tomkyle](https://github.com/tomkyle)

---

Top Contributors

[![tomkyle](https://avatars.githubusercontent.com/u/412560?v=4)](https://github.com/tomkyle "tomkyle (8 commits)")

---

Tags

jsoncliarrayyamlcsvmarkdowntable

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tomkyle-tabulate/health.svg)

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

###  Alternatives

[mledoze/countries

List of world countries in JSON, CSV, XML and YAML

6.2k699.7k6](/packages/mledoze-countries)[kzykhys/ciconia

The Markdown parser for PHP5.4

35366.7k13](/packages/kzykhys-ciconia)[j13k/yaml-lint

A compact command line utility for checking YAML file syntax

161.1M19](/packages/j13k-yaml-lint)[access9/dbtabledump

The database table dumper

1014.0k](/packages/access9-dbtabledump)

PHPackages © 2026

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