Recommend this page to a friend! |
Download |
Info | Documentation | Screenshots | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
58% | Total: 394 | All time: 6,625 This week: 47 |
Version | License | PHP version | Categories | |||
table-chart-builder 1.0.6 | MIT/X Consortium ... | 5 | HTML, PHP 5, Math |
Description | Author | |||
This package can create HTML table with values and calculated cells. Innovation Award
|
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.
$ composer require gavinggordon/tablechartbuilder
include( 'vendor/autoload.php' );
$table = new GGG\Html\Builders\TableChartBuilder();
$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'
]
] );
$html = $table->render();
echo $html;
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.
Screenshots (2) | ||
Files (17) |
File | Role | Description | ||
---|---|---|---|---|
backups (1 file) | ||||
src (2 files, 3 directories) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE.txt | Doc. | Documentation | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (17) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Abstracts (1 file) | ||||
Calculations (5 files) | ||||
Interfaces (1 file) | ||||
Table.php | Class | Class source | ||
TableChartBuilder.php | Class | Class source |
Files (17) | / | src | / | Calculations |
File | Role | Description |
---|---|---|
Average.php | Class | Class source |
Difference.php | Class | Class source |
Highest.php | Class | Class source |
Lowest.php | Class | Class source |
Total.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
88% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.