PHPackages                             iter8/builder - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. iter8/builder

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

iter8/builder
=============

A wrapper for the PHP Excel library to help you quickly build reports

4.2.0(4mo ago)115.1k[3 issues](https://github.com/iter8-au/builder/issues)1MITPHPPHP ^8.1CI failing

Since Jul 5Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/iter8-au/builder)[ Packagist](https://packagist.org/packages/iter8/builder)[ Docs](https://github.com/iter8-au/builder)[ RSS](/packages/iter8-builder/feed)WikiDiscussions 4.x Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (21)Used By (1)

Builder
=======

[](#builder)

A wrapper for the PHPExcel library to help you quickly build Excel reports.

Example Usage
-------------

[](#example-usage)

```
$builder = new Builder(
    new \Builder\Builders\PhpSpreadsheet(),
    '/var/cache',
);

$reportArray = [
    'headers' => [
        'Column 1',
        'Column B',
    ],
    'rows' => [
        [
            'Some Data',
            'Some Other Data',
        ],
        [
            'Some Data 2',
            'Some Other Data 2',
        ],
    ],
];

$builder->setSheets($reportArray);

$builder->setCreator('Workflow');
$builder->setTitle('Day Report');
$builder->setSheetTitles(['Data']);
$builder->setDescription('The Workflow Day Report');
$builder->setFilename('Workflow-Day_Report_' . $startDate->format('d_m_Y'));

// use generate() to output headers and force file download.
$builder->generate();

// use generateExcel() to create the file.
$builder->generateExcel();
```

Development
-----------

[](#development)

### Todo

[](#todo)

- Allow both caching when building a report as well as short term or perm-caching to a configured location.

Testing
-------

[](#testing)

Minimal tests can be performed with PHPUnit.

### Unit Tests

[](#unit-tests)

`composer tests` or `./vendor/bin/phpunit`

### Code Coverage

[](#code-coverage)

`composer coverage`

These will be available in `./builder_coverage`.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance56

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 56% 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 ~219 days

Recently: every ~665 days

Total

17

Last Release

133d ago

Major Versions

0.0.7 → 1.x-dev2017-06-21

1.0.0 → 2.x-dev2017-10-18

2.0.0 → 3.0.12018-07-18

3.0.3 → 4.0.02018-10-29

PHP version history (6 changes)0.0.7PHP ^5.4

2.x-devPHP ^5.6

3.0.1PHP ^5.6|^7.0

3.0.2PHP ^7.1

4.0.4PHP &gt;=7.1

4.1.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/468779?v=4)[Dan Barrett](/maintainers/yesdevnull)[@yesdevnull](https://github.com/yesdevnull)

---

Top Contributors

[![yesdevnull](https://avatars.githubusercontent.com/u/468779?v=4)](https://github.com/yesdevnull "yesdevnull (14 commits)")[![deancsmith](https://avatars.githubusercontent.com/u/387289?v=4)](https://github.com/deancsmith "deancsmith (10 commits)")[![nirix](https://avatars.githubusercontent.com/u/61958?v=4)](https://github.com/nirix "nirix (1 commits)")

---

Tags

excelphpspreadsheetsilexspoutexcelphpspreadsheetreports

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iter8-builder/health.svg)

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k157.3M895](/packages/maatwebsite-excel)[yidas/phpspreadsheet-helper

PHP Excel Helper - Write and read Spreadsheet with easy way based on PhpSpreadsheet

385151.8k3](/packages/yidas-phpspreadsheet-helper)

PHPackages © 2026

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