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

Abandoned → [initphp/console](/?search=initphp%2Fconsole)ArchivedLibrary[CLI &amp; Console](/categories/cli)

initphp/cli-table
=================

PHP CLI Table Generator (DEPRECATED — merged into initphp/console:^2.1)

1.0.1(1mo ago)11.8k↓76.7%MITPHPPHP &gt;=7.2

Since Aug 26Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/InitPHP/CLITable)[ Packagist](https://packagist.org/packages/initphp/cli-table)[ RSS](/packages/initphp-cli-table/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

InitPHP CLI Table Generator
===========================

[](#initphp-cli-table-generator)

> ## ⚠️ DEPRECATED — Use [`initphp/console`](https://github.com/InitPHP/Console) instead
>
> [](#️-deprecated--use-initphpconsole-instead)
>
> As part of the InitPHP package consolidation, **this package has been merged into [`initphp/console`](https://github.com/InitPHP/Console) starting with version 2.1.** The consolidated package ships an identical table renderer under `\InitPHP\Console\Utils\Table` plus the rest of the Console toolkit (Application, Command, Input, Output, Question).
>
> This repository is kept read-only for historical reference. **No further updates will be released.**
>
> ### Migration
>
> [](#migration)
>
> 1. Update your `composer.json`:
>
>     ```
>     - "initphp/cli-table": "^1.0",
>     + "initphp/console": "^2.1"
>     ```
> 2. Your existing `use InitPHP\CLITable\Table;` imports keep working — `initphp/console:^2.1` ships a `class_alias` that aliases the old FQCN to the canonical `\InitPHP\Console\Utils\Table`. **No source changes required.**
> 3. When you next touch the code, prefer the new canonical namespace:
>
>     ```
>     // Before
>     use InitPHP\CLITable\Table;
>
>     // After
>     use InitPHP\Console\Utils\Table;
>     ```
>
> Composer declares a `replace` from `initphp/console:^2.1` to this package, so the two will not be installed side-by-side.

---

This library allows you to create nice looking tables in the CLI interface with PHP.

***Note** : Not required, but the **MB\_String** extension is highly recommended.*

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

[](#installation)

```
composer require initphp/cli-table

```

or include `src/Table.php`.

Usage
-----

[](#usage)

```
