pbk83/csimpletable
Composer 安装命令:
composer require pbk83/csimpletable
包简介
PHP classes for creating tables
README 文档
README
Install
SimpleTable can be installed together with Anax - MVC through Composer. Add the following line to composer.json (under require ):
"pbk83/csimpletable": "dev-master"
SimpleTable can then be added as a service in Anax - MVC:
$di->set('SimpleTable', function() use ($di) { $table = new pbk83\SimpleTable\CSimpleTable(); return $table; });
SimpleTable can also be used without Anax - MVC.
Use
Use the method addHeadings($head) to create a header. Example:
addHeadings([’Name’, ’Age’]);
Use the method addRow($row) to add rows to the table. Example:
addRow([’Joe’, ’43’]); addRow([’Jane’, ’45’]);
Use the method createTable() to get the generated html - code.
| Name | Age |
|---|---|
| Joe | 43 |
| Jane | 45 |
Updated
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-12