northern-lights/html-tables-manager

[PHP] HTML Tables manager (Tablesman library) - Create and customize HTML tables

v2.1.2 2017-02-13 00:49 UTC

This package is auto-updated.

Last update: 2024-04-21 19:45:29 UTC


README

[PHP] HTML Tables manager (Tablesman)

--

Do you hate HTML tables like I do? Too much complications and code for such a small thing! So I come with idea and solution. PHP Class which makes this process simple and straight forward.

Installation

composer require xzero707/html-tables-manager

or clone repo and include tablesman.class.php

Usage

Basic use (assuming class is loaded and initialized):

$table->setOption('class', 'example_table');
$table->setOption('id', 'example_table');
$table->setOption('CODE', "border='1'");
$table->create();
$table->header(array("Header #1", "Header #2", "Header #3"));
$table->row(array("Foo", "Bar", "Foobar"));
$table->row(array("Foo #2", "Bar #2", "Foobar #2"));
$table->footer(array("", "Foobar", ""));
$table->close();

echo implode("", $table->output); // Finaly flush output

For more details and examples, check out [example.php](https://github.com/xZero707/PHP-Tables-Manager/blob/master/example.php)

LICENSE AGREEMENT

Read it here: LICENSE