PHPackages                             oncology-support/phpspreadsheet-helper-bundle - 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. oncology-support/phpspreadsheet-helper-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

oncology-support/phpspreadsheet-helper-bundle
=============================================

Symfony Bundle

2.3.1(2mo ago)12451MITPHPPHP &gt;=8.3

Since Feb 11Pushed 2w ago1 watchersCompare

[ Source](https://github.com/OncologySupport/PhpSpreadsheetHelperBundle)[ Packagist](https://packagist.org/packages/oncology-support/phpspreadsheet-helper-bundle)[ Docs](https://github.com/ehymel/PhpSpreadsheetHelperBundle)[ RSS](/packages/oncology-support-phpspreadsheet-helper-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (12)Versions (13)Used By (0)

PhpSpreadsheet Helper Bundle
============================

[](#phpspreadsheet-helper-bundle)

`PhpSpreadsheet Helper Bundle` eases the use of the excellent [PHPOffice/PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet)in your Symfony application by adding helper methods

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

[](#documentation)

What's new in version 2
-----------------------

[](#whats-new-in-version-2)

WorksheetFactory has been re-factored to WorksheetUtils to allow the helper methods to be available on worksheets beyond the first tab of the spreadsheet. See the example below.

License
-------

[](#license)

PhpSpreadsheet Helper Bundle is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.

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

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
composer require oncology-support/phpspreadsheet-helper-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require oncology-support/phpspreadsheet-helper-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    OncologySupport\PhpSpreadsheetHelper\OncologySupportPhpSpreadsheetHelperBundle::class => ['all' => true],
];
```

### Step 3: Use it!

[](#step-3-use-it)

This bundle provides helper functions that you call from your controller.

```
// your controller

use OncologySupport\PhpSpreadsheetHelper\Utilities\SpreadsheetFactory;
use OncologySupport\PhpSpreadsheetHelper\Utilities\WorksheetUtils;

public function createAndDownloadSpreadsheet()
{
    $spreadsheet = new SpreadsheetFactory();
    $worksheet = new WorksheetUtils($spreadsheet->getActiveSheet(), 'First Tab');

    $worksheet->addTitleRow('Very Important Data');

    $header = ['Order Date', 'Site', 'Item', 'Item Description'];
    $rows = [
        ['12/15/2023', 'Main site', 'Dog collar', 'A stunning red dog collar'],
        ['12/19/2023', 'Main site', 'Cat collar', 'Blue cat collar'],
        ['1/3/2024', 'Backup site', 'Turtle harness', 'Take your turtle for a walk!'],
    ];

    $worksheet->addDataRows[$rows];

    // add another tab on the spreadsheet
    $worksheet2 = new WorksheetUtils($spreadsheet->createSheet(), 'Second Tab');
    $spreadsheet->setActiveSheetIndex(1);

    $worksheet2->addTitleRow('Even More Important Data');

    $header = ['Order Date', 'Site', 'Item', 'Item Description'];
    $rows = [
        ['2/12/2024', 'Main site', 'Donkey collar', 'Big enough for the most stubborn donk'],
        ['4/3/2024', 'Backup site', 'Duck harness', 'Take your duck for a walk!'],
    ];

    $worksheet2->addDataRows[$rows];

    // download to an excel file
    $spreadsheet->outputToWeb();
}

Enjoy!
```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance93

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~73 days

Recently: every ~132 days

Total

12

Last Release

64d ago

Major Versions

1.0.4 → 2.0.02024-06-22

PHP version history (2 changes)1.0.0PHP &gt;=8.2

2.2PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/a94efceb2383ca7989e873fa67d62a307af4a9d0cddd1ac7de3dee47195381c8?d=identicon)[ehymel](/maintainers/ehymel)

---

Top Contributors

[![ehymel](https://avatars.githubusercontent.com/u/11381475?v=4)](https://github.com/ehymel "ehymel (3 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")

---

Tags

symfonyexcelPhpOfficespreadsheetphpspreadsheet

### Embed Badge

![Health badge](/badges/oncology-support-phpspreadsheet-helper-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/oncology-support-phpspreadsheet-helper-bundle/health.svg)](https://phpackages.com/packages/oncology-support-phpspreadsheet-helper-bundle)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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