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

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

xiaosongshu/table
=================

PHP在cli模式下输出表格

v1.0.0(2y ago)1121MITPHPPHP &gt;=7.0

Since Sep 6Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

### php在cli模式下输出表格

[](#php在cli模式下输出表格)

\####安装

```
composer require xiaosongshu/table
```

#### 使用

[](#使用)

```
        use Xiaosongshu\Table\Table;

        /** 表头 */
        $header = ['name', 'email'];
        /** 内容 */
        $row = [
            ['张a.三.....','1231232dsfvsa'],
            ['李////////////////////四','xzfbgadsfvgs23'],
            ['李////////////////////四','x啥地方'],
            ['asdfasdgswee','171qwerqwerqwrom'],
            ['asasd23536435gswee','地地道道'],
            ['dfhdfhdfh45756ry7u','32日3日染发'],
            ['234365,..','地地道道哈哈哈哈'],
        ];
        /** 实例化表格 */
        $table = new Table();
        /** 输出表格 */
        $table->table($header,$row);
```

#### 输出内容

[](#输出内容)

```
+--------------------------+------------------+
| name                     | email            |
+--------------------------+------------------+
| 张a.三.....              | 1231232dsfvsa     |
+--------------------------+------------------+
| 李////////////////////四 | xzfbgadsfvgs23    |
+--------------------------+------------------+
| 李////////////////////四  | x啥地方           |
+--------------------------+------------------+
| asdfasdgswee             | 171qwerqwerqwrom |
+--------------------------+------------------+
| asasd23536435gswee       | 地地道道           |
+--------------------------+------------------+
| dfhdfhdfh45756ry7u       | 32日3日染发        |
+--------------------------+------------------+
| 234365,..                | 地地道道哈哈哈哈    |
+--------------------------+------------------+

```

#### 联系作者

[](#联系作者)

email:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f593cfd6a2e0845ea319086175a4d2173229dd598bf9f67575911fb3497f2b?d=identicon)[2723659854](/maintainers/2723659854)

---

Top Contributors

[![2723659854](https://avatars.githubusercontent.com/u/43638463?v=4)](https://github.com/2723659854 "2723659854 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M319](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M18](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

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

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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