PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 211 All time: 8,359 This week: 488Up
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
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 (3)  
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

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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:211
This week:0
All time:8,359
This week:488Up