This library is a helper to generate HTML tables from an array.
$ composer require rocket/table
$heads = ['Title', 'Author']; $content = [ ['The book I didn\'t write', 'Not Me'] ['The book he wrote', 'It was me'] ]; echo Table::quick($heads, $content);
<table class="table table-striped sticky-enabled"> <thead> <tr><th>Title</th><th>Author</th></tr> </thead> <tbody> <tr><td>The book I didn't write</td><td>Not Me</td></tr> <tr><td>The book he wrote</td><td>It was me</td></tr> </tbody> </table>
All the tests live in the main project.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.