rocket / table
This package is abandoned and no longer maintained.
No replacement package was suggested.
Table display helper
dev-master / 1.0.x-dev
2016-01-02 17:58 UTC
Requires
- php: >=5.5.0
This package is auto-updated.
Last update: 2023-08-16 18:38:45 UTC
README
This library is a helper to generate HTML tables from an array.
Install
Via Composer
$ composer require rocket/table
Usage
$heads = ['Title', 'Author']; $content = [ ['The book I didn\'t write', 'Not Me'] ['The book he wrote', 'It was me'] ]; echo Table::quick($heads, $content);
will produce
<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>
Testing
All the tests live in the main project.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.