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: 209 All time: 8,355 This week: 147Up
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: 74721 in Poland Poland
Week rank: 39 Up1 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:209
This week:0
All time:8,355
This week:147Up