2017 © Pedro Peláez
 

library csimpletable

PHP classes for creating tables

image

pbk83/csimpletable

PHP classes for creating tables

  • Wednesday, April 27, 2016
  • by pbk83
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

pbk83/csimpletable

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

Install

SimpleTable can be installed together with Anax - MVC through Composer. Add the following line to composer.json (under require ):, (*2)

"pbk83/csimpletable": "dev-master"

SimpleTable can then be added as a service in Anax - MVC:, (*3)

$di->set('SimpleTable', function() use ($di) {
    $table = new pbk83\SimpleTable\CSimpleTable();    
    return $table;
});

SimpleTable can also be used without Anax - MVC., (*4)

Use

Use the method addHeadings($head) to create a header. Example:, (*5)

addHeadings([’Name’, ’Age’]);

Use the method addRow($row) to add rows to the table. Example:, (*6)

addRow([’Joe’, ’43’]);
addRow([’Jane’, ’45’]);

Use the method createTable() to get the generated html - code., (*7)

Name Age
Joe 43
Jane 45

Updated, (*8)

The Versions

27/04 2016

dev-master

9999999-dev http://dbwebb.se

PHP classes for creating tables

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Patrik Blomqvist

micro framework mvc module education

14/04 2016

v1.0

1.0.0.0 http://dbwebb.se

PHP classes for creating tables

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Patrik Blomqvist

micro framework mvc module education