[READ-ONLY] Subtree split of Rocket Propelled Tortoise UI Table
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/js
README.md
Table.php
composer.json
events.php

README.md

Tables

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

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.