gavinggordon/tablechartbuilder
Composer 安装命令:
composer require gavinggordon/tablechartbuilder
包简介
Create dynamic HTML tables that can calculate column data, like Excel, and look good doing it, with or without CSS Boostrap.
关键字:
README 文档
README
Description
This php class package allows you to create dynamic HTML tables that can calculate column data, like Excel, and look good doing it. Although it is compatible with CSS Bootstrap 3+, Bootstrap is not required for the resulting table to be both responsive, as well as styled beautifully.
How to Use
Install
$ composer require gavinggordon/tablechartbuilder
Autoload
include( 'vendor/autoload.php' );
Insantiate
$table = new GGG\Html\Builders\TableChartBuilder();
Configure
$table->configure( [ 'title' => '', 'headers' => [ 'Q1', 'Q2', 'Q3', 'Q4' ], 'data' => [ [ 10000, 5000, 7500, 5000 ], [ 13000, 1600, 2500, 8000 ], [ 15000, 7400, 3600, 2500 ] ], 'equation' => [ 'total', 'average', 'lowest', 'highest' ] ] );
Render
$html = $table->render(); echo $html;
More Information
PHP Innovation Award
This class has been awarded a PHP Innovation Award, provided by PHPClasses.org. My other PHP classes are accessible online via my GitHub profile or PHPClasses.org profile.
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-01