snufkin/console-table
Composer 安装命令:
composer require snufkin/console-table
包简介
A table generator class for the PHP CLI.
关键字:
README 文档
README
- Install composer
- Run
composer require snufkin/ConsoleTable - Profit!
Usage
$table = new \Console\Helper\ConsoleTable(); $table->setHeaders(['Column 1', 'Column 2']); $table->addRow(['data 1', 'data 2']); $table->addRow(['data 3', 'data 4']); $table->addRow(['data 5', 'data 6']); echo $table->getTable();
Customisations
By default all columns are aligned left. To change the alignment
use the 0 as the first parameter in the constructor:
$table = new \Console\Helper\ConsoleTable(0);
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2017-04-06