PHPackages                             phpbench/tabular - 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. phpbench/tabular

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

phpbench/tabular
================

Generate complex tables from simple configuration

0.4.1(10y ago)1015.2k↓13.7%3[3 issues](https://github.com/phpbench/tabular/issues)MITPHPPHP ~5.4|^7.0

Since Sep 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/phpbench/tabular)[ Packagist](https://packagist.org/packages/phpbench/tabular)[ RSS](/packages/phpbench-tabular/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

Tabular
=======

[](#tabular)

[![tabularlogo-2](https://cloud.githubusercontent.com/assets/530801/9979505/11e271ce-5f71-11e5-85e1-b76b17b06609.png)](https://cloud.githubusercontent.com/assets/530801/9979505/11e271ce-5f71-11e5-85e1-b76b17b06609.png)

[![Build Status](https://camo.githubusercontent.com/da82bf87efffcf4c14b237962d36c22f75a0ec55e2bf4e7031ea745f86580421/68747470733a2f2f7472617669732d63692e6f72672f70687062656e63682f746162756c61722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phpbench/tabular)[![StyleCI](https://camo.githubusercontent.com/7d5ed8c7142cb88f408af4c3c25e1b1644dceea14ea5b65b3cf9e7b270ebb052/68747470733a2f2f7374796c6563692e696f2f7265706f732f34303832333639312f736869656c64)](https://styleci.io/repos/40823691)

Tabular is a library for transforming a source XML document into a tabular XML document using a given configuration. The resulting tabular XML document can then transformed or used to easily render tables (for example in HTML or in the console).

Tabular is better than spreadsheets.

Documentation
-------------

[](#documentation)

See the [official documentation](http://tabular.readthedocs.org).

Example
-------

[](#example)

The central concept is the definition file:

```
{
    "rows": [
        {
            "cells": [
                {
                    "name": "title",
                    "expr": "string(./title)"
                },
                {
                    "name": "price",
                    "expr": "number(./price)"
                }
            ],
            "with_query": "//book"
        },
        {
            "cells": [
                {
                    "name": "price",
                    "expr": "sum(//price)"
                }
            ]
        }
    ]
}
```

The above definition will generate a table representation in XML with a row for each `` element in the given XML file and provide an additional row showing the sum of all the `` elements of the `` element.

So given the following XML file:

```

            War and Peace
            5.00

            One Hundered Years of Soliture
            7

```

The generated table might look like this (as rendered by the [Tabular CLI](https://github.com/phpbench/tabular-cli)):

```
┌────────────────────────────────┬───────┐
│ title                          │ price │
├────────────────────────────────┼───────┤
│ War and Peace                  │ 5     │
│ One Hundered Years of Soliture │ 7     │
│                                │ 12    │
└────────────────────────────────┴───────┘

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.8% 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 ~16 days

Total

8

Last Release

3794d ago

PHP version history (2 changes)0.1PHP ~5.4

0.2.2PHP ~5.4|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ec7d5d6b7ea54007be5d7b4f43800381cc1e22929f7d2276fba30e497fdfa6?d=identicon)[dantleech](/maintainers/dantleech)

---

Top Contributors

[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (80 commits)")[![hason](https://avatars.githubusercontent.com/u/288535?v=4)](https://github.com/hason "hason (1 commits)")

### Embed Badge

![Health badge](/badges/phpbench-tabular/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[getdkan/dkan

DKAN Open Data Catalog

385135.4k2](/packages/getdkan-dkan)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

292927.5k22](/packages/craftcms-feed-me)

PHPackages © 2026

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