Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 385 | All time: 6,700 This week: 488 |
Version | License | PHP version | Categories | |||
tabler 1.0.0 | MIT/X Consortium ... | 5.4 | HTML, PHP 5 |
Description | Author | |
This class can generate HTML5 table programatically. |
This class allows the ability to quickly create custom HTML5 Bootstrap 3.3.6 tables.
include_once( __DIR__ . '/Tabler.class.php' );
$title = 'My Table'; // table title; REQUIRED
$data = [ ['John','25','male'], ['Jane','32','female'] ]; // table cell data; REQUIRED
$headers = ['Name','Age','Gender']; // table headers; REQUIRED
$doReturn = false; // false = echo html; true = return html; OPTIONAL
$customcss = false; // Use custom css? OPTIONAL
$tabler = new Tabler( $title, $data, $headers ); // instantiate tabler;
$tabler::view(); // view table
Tabler::$_title = 'My Table'; // title of the table;
Tabler::$_headers = ['Name','Age','Gender']; // table headers <th>*</th>;
Tabler::$_data = [ ['John','25','male'], ['Jane','32','female'] ]; // table cells <td>*</td>;
Tabler::$_return = false; // false = echo html; true = return html;
Tabler::$_style = false; // Use custom style?
Tabler::view(); // view table;
$options = [];
$options['title'] = 'My Table';
$options['data'] = [ ['John','25','male'], ['Jane','32','female'] ];
$options['headers'] = ['Name','Age','Gender'];
$options['doReturn'] = false;
$options['customcss'] = false;
$table = Tabler::_singleton( $opt ); // returns html code;
echo $table; // echo table html code;
Files (2) |
File | Role | Description |
---|---|---|
README.md | Doc. | Information and Example |
Tabler.class.php | Class | Main class source file |
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.