PHPackages                             lovelock/spt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lovelock/spt

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lovelock/spt
============

Simple PHP table generator.

1.0.4(9y ago)221MITPHP

Since Dec 9Pushed 9y agoCompare

[ Source](https://github.com/lovelock/Spt)[ Packagist](https://packagist.org/packages/lovelock/spt)[ RSS](/packages/lovelock-spt/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (6)Used By (0)

Simple PHP table generator
==========================

[](#simple-php-table-generator)

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

Usage
-----

[](#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
--------

[](#donation)

1. WeChat
    [![](https://camo.githubusercontent.com/50028ce967264420b181246e50c9d7ad9462547464aacb9244a62b16e333144a/687474703a2f2f7777332e73696e61696d672e636e2f736d616c6c2f30303679386d4e366a773166616675717a697231656a33306732306d723736612e6a7067)](https://camo.githubusercontent.com/50028ce967264420b181246e50c9d7ad9462547464aacb9244a62b16e333144a/687474703a2f2f7777332e73696e61696d672e636e2f736d616c6c2f30303679386d4e366a773166616675717a697231656a33306732306d723736612e6a7067)
2. Alipay
    [![](https://camo.githubusercontent.com/8fe2560083e244c104235a73814dd7508ccfa4c218a6d3363c78c041761bca6c/687474703a2f2f7777312e73696e61696d672e636e2f736d616c6c2f30303679386d4e366a7731666166757266676b67306a3330676e306d6c37366d2e6a7067)](https://camo.githubusercontent.com/8fe2560083e244c104235a73814dd7508ccfa4c218a6d3363c78c041761bca6c/687474703a2f2f7777312e73696e61696d672e636e2f736d616c6c2f30303679386d4e366a7731666166757266676b67306a3330676e306d6c37366d2e6a7067)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Total

5

Last Release

3380d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2208731?v=4)[Frost Wong](/maintainers/lovelock)[@lovelock](https://github.com/lovelock)

---

Top Contributors

[![lovelock](https://avatars.githubusercontent.com/u/2208731?v=4)](https://github.com/lovelock "lovelock (7 commits)")

### Embed Badge

![Health badge](/badges/lovelock-spt/health.svg)

```
[![Health](https://phpackages.com/badges/lovelock-spt/health.svg)](https://phpackages.com/packages/lovelock-spt)
```

###  Alternatives

[pocketmine/binaryutils

Classes and methods for conveniently handling binary data

26717.8k38](/packages/pocketmine-binaryutils)[boxblinkracer/shopware-ai-demodata

AI Demo Data

291.5k](/packages/boxblinkracer-shopware-ai-demodata)[websemantics/pyrocms-theme

PyroCMS Plus Admin Theme

151.3k7](/packages/websemantics-pyrocms-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
