PHP Classes

PHP Html5 Table: Create HTML 5 based tables to use using Bootstrap

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 211 This week: 1All time: 8,350 This week: 560Up
Version License PHP version Categories
tablehtml5 4The PHP License5HTML, PHP 5
Description 

Author

This class can create HTML 5 based tables to use using Bootstrap.

It can take arrays with data to define the table headers and row cells.

The class can output HTML compliant with HTML5 specification using CSS styles from the Bootstrap library to define how to render the tables.

Picture of adam berger
  Performance   Level  
Name: adam berger <contact>
Classes: 23 packages by
Country: Poland Poland
Age: ???
All time rank: 74621 in Poland Poland
Week rank: 51 Up3 in Poland Poland Up
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

Example

<?php
require('TableHtml5.php');

$tableHtml5 = new TableHtml5();

   
         
$tHeaderRows = ["Id", "ISBN", "Title", "Author"];

         
$tBodyRows = [
                          [
'1', '978-83-938738-0-7', 'Behind the Black Angel', 'Adam Berger'],
                          [
'2', '9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'],
                          [
'3', '960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'],
                          [
'4', '978-83-800-8211-3', 'Harry Potter and the Philosopher"s Stone', 'Rowling Joanne K'],
                         ];
                     
                     
$tableHtml5->startTable();
                     
$tableHtml5->setTheader($tHeaderRows);
                     
$tableHtml5->setRows($tBodyRows);
                     
$tableHtml5->tBody();
             
$tableHtml5->endTable();
                 echo
$tableHtml5->getRenderView();


Details

TableHtml5

The class is designed to easily create tables in Html5 using the bootstrap library


  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file TableHtml5.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:211
This week:1
All time:8,350
This week:560Up