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 today

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 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

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

1031d 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

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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