rocket / table
Table display helper
Installs: 602
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
pkg:composer/rocket/table
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.