dejurin/php-table-generate
Composer 安装命令:
composer require dejurin/php-table-generate
包简介
Simple PHP HTML table generator by CodeIgniter.
README 文档
README
Packagist: https://packagist.org/packages/dejurin/php-table-generate
Simple PHP HTML table generator by CodeIgniter.
Installation
Install this package via Composer.
composer require dejurin/php-table-generate
Or edit your project's composer.json to require dejurin/php-table-generate and then run composer update.
"require": { "dejurin/php-table-generate": "^1.0.1" }
Example
$table = new Dejurin\PHPTableGenerate(); $table->set_heading('Currency', 'Amount', 'Color'); $data = [ [ [ 'data' => 'Dollar', 'td' => 'th', 'scope' => 'row', 'class' => 'style' ], 100, '#85bb65', ], ]; echo $table->generate($data); /* <table border="0" cellpadding="4" cellspacing="0"> <thead> <tr> <th>Currency</th><th>Amount</th><th>Color</th></tr> </thead> <tbody> <tr> <th class="style" scope="row">Dollar</th><td>100</td><td>#85bb65</td></tr> </tbody> </table> */
License
This source code is distributed under MIT license.
Sponsors
https://currencyconvert.online/
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-04