1. Go to this page and download the library: Download gbhorwood/tabletown library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gbhorwood / tabletown example snippets
Gbhorwood\Tabletown\Table;
// array of column headers
$headers = ['Artist', 'Title', 'Year'];
// array of arrays, one for each row in the table
$rows = [
['Bratmobile', 'Pottymouth', 1993],
['Coltrane, John', 'Giant Steps', 1959],
];
// get and output the table
$myTable = Table::get($headers, $rows);
print $myTable;
// array of column headers
$headers = ['Artist', 'Title', 'Year'];
// array of arrays, one for each row in the table
$rows = [
['Bratmobile', 'Pottymouth', 1993],
['Coltrane, John', 'Giant Steps', 1959],
];
$myTable = Table::get($headers, $rows);