PHPackages                             eclipxe/engineworks-pivot - 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. eclipxe/engineworks-pivot

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

eclipxe/engineworks-pivot
=========================

PHP Pivot (dynamic tables)

v0.2.0(9y ago)3484MITPHPPHP &gt;=7.0

Since Apr 13Pushed 9y ago3 watchersCompare

[ Source](https://github.com/eclipxe13/engineworks-pivot)[ Packagist](https://packagist.org/packages/eclipxe/engineworks-pivot)[ Docs](https://github.com/eclipxe13/engineworks-pivot)[ RSS](/packages/eclipxe-engineworks-pivot/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

eclipxe13/engineworks-pivot - PHP Pivot (dynamic tables)
========================================================

[](#eclipxe13engineworks-pivot---php-pivot-dynamic-tables)

[![Source Code](https://camo.githubusercontent.com/723f9857558013c5606ad41f559bfc4922bac04efdcb4b133ee20328d36a42c0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d65636c6970786531332f656e67696e65776f726b732d2d74656d706c617465732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/engineworks-pivot)[![Latest Version](https://camo.githubusercontent.com/3aeb4ca613da48a49a79842fafa5cf9e6ceaae4aecc090a25c6a69b17a14d44a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f65636c6970786531332f656e67696e65776f726b732d7069766f742e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/engineworks-pivot/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/engineworks-pivot/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/c04014505e5b923e0167604522b98f6d31f19dca79019b8020cfec0a495b3a55/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65636c6970786531332f656e67696e65776f726b732d7069766f742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/eclipxe13/engineworks-pivot?branch=master)[![Scrutinizer](https://camo.githubusercontent.com/df35269010ab82a706bea934ca88406b25047db2682da7ebce333077bbca6915/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65636c6970786531332f656e67696e65776f726b732d7069766f742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/engineworks-pivot/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/e94033738ddad80f73728d3248758525c190fb6a595f11a811d04edc485b3d02/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f65636c6970786531332f656e67696e65776f726b732d7069766f742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/engineworks-pivot/code-structure/master)[![Total Downloads](https://camo.githubusercontent.com/83d1070f8510858072789bb506b4c5913b633600bd18af9dfde9e0ac546304b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65636c697078652f656e67696e65776f726b732d7069766f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eclipxe/engineworks-pivot)[![SensioLabsInsight](https://camo.githubusercontent.com/298faee18fd6f34227a43e996a92a3dd946270a1e711927b9716a2f807456ead/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34623337653633322d306136312d346536632d393430622d3962663061643930366532372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4b37e632-0a61-4e6c-940b-9bf0ad906e27)

Use this library to retrieve a pivot table (aka dynamic table) from a database.

The pivot allows you to define a source (a table, a view or a query), source fields, filters, rows and columns to group by and aggregators to operate (like sum, average, count, standar deviation...). All this pivot structure can be stored and loaded in xml files and modified at runtime.

After a pivot structure has been set, you can query the database for the results and receive a organized information no navigate. The library includes a formatter helper class to create an XHTML Table based on a query result.

Installation
------------

[](#installation)

Use composer to install this library `composer require eclipxe/engineworks-pivot`

Contributing
------------

[](#contributing)

Contributions are welcome! Please read [CONTRIBUTING](https://github.com/eclipxe13/engineworks-pivot/blob/master/CONTRIBUTING.md) for details and don't forget to take a look in the [TODO](https://github.com/eclipxe13/engineworks-pivot/blob/master/TODO.md) and [CHANGELOG](https://github.com/eclipxe13/engineworks-pivot/blob/master/CHANGELOG.md) files.

Copyright and License
---------------------

[](#copyright-and-license)

The eclipxe13/engineworks-pivot library is copyright © [Carlos C Soto](https://eclipxe.com.mx/)and licensed for use under the MIT License (MIT). Please see [LICENSE](https://github.com/eclipxe13/engineworks-pivot/blob/master/LICENSE) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~4 days

Total

2

Last Release

3360d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66964609?v=4)[eclipxe](/maintainers/eclipxe)[@Eclipxe](https://github.com/Eclipxe)

---

Top Contributors

[![eclipxe13](https://avatars.githubusercontent.com/u/1266852?v=4)](https://github.com/eclipxe13 "eclipxe13 (8 commits)")

---

Tags

datatablepivotdynamic table

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/eclipxe-engineworks-pivot/health.svg)

```
[![Health](https://phpackages.com/badges/eclipxe-engineworks-pivot/health.svg)](https://phpackages.com/packages/eclipxe-engineworks-pivot)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k379.0M4.3k](/packages/fakerphp-faker)[nicolaskruchten/pivottable

Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.

4.4k214.5k1](/packages/nicolaskruchten-pivottable)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

722381.6M104](/packages/dflydev-dot-access-data)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2139.1M25](/packages/mbezhanov-faker-provider-collection)[php-units-of-measure/php-units-of-measure

A PHP library for converting between standard units of measure.

3133.7M32](/packages/php-units-of-measure-php-units-of-measure)[nagarajanchinnasamy/subtotal

Subtotal.js is a JavaScript plugin for PivotTable.js. It renders subtotals of rows and columns with the ability to expand and collapse rows.

93133.3k](/packages/nagarajanchinnasamy-subtotal)

PHPackages © 2026

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