This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Simple PHP table generator.

1.0.4 2017-03-30 07:45 UTC

This package is not auto-updated.

Last update: 2021-07-24 10:58:35 UTC


README

Lately I'm stucked in countless table generating work, so I create this little library to ease myself.

Usage

You want to generate a table, so you have some field names for the table header, and you have lots of data for the table body. We assume they are fields and data.

Now, you can generate the table by doing this:

  1. Fetch the latest library composer require lovelock/spt

  2. Use it in your code.

...

echo new \Spt\Table($fields, $data);

Enjoy it.

Donation

  1. WeChat

  2. Alipay