2017 © Pedro Peláez
 

library ctable

Class for HTML table

image

phpe/ctable

Class for HTML table

  • Sunday, March 1, 2015
  • by phphille
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Ctable

A html table generator, (*1)

About

A very light and simple class that genrate a html table from an array with values., (*2)

PHP 5 >= 5.3.0

Introduction

Just create an object $ctable = new \phpe\HTMLTable\CTable();, (*3)

Then, if you want to change the table headers, write the following(if you dont want to, skip it):, (*4)

$table = $ctable->setTableHeading('array with names', 'css class name');, (*5)

To get the html table:, (*6)

$table = $ctable->getTable('array with values', 'css class name');, (*7)

Using anax-mvc

Make it apart of $Di like:, (*8)

$di->setShared('ctable', function() { $ctable = new \phpe\HTMLTable\CTable(); return $ctable; });, (*9)

Then can you, depenending where in the code you want to reach CTable, reach the class whit either $app or $di; $app->ctable->getTable($anArray, 'cssClass'); or $this->di->ctable->getTable($anArray, 'cssClass');, (*10)

Scrutinizer Code Quality Code Coverage Build Status, (*11)

The Versions

01/03 2015

dev-master

9999999-dev

Class for HTML table

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

html table

16/02 2015

v1.0

1.0.0.0

Class for HTML table

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Philip Persson

html table