PHPackages                             mattfanz/twig-spreadsheet-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. [Templating &amp; Views](/categories/templating)
4. /
5. mattfanz/twig-spreadsheet-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

mattfanz/twig-spreadsheet-bundle
================================

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

1.1(7y ago)15.6kMITPHPPHP &gt;=7.0

Since Jun 17Pushed 7y agoCompare

[ Source](https://github.com/mattfanz/TwigSpreadsheetBundle)[ Packagist](https://packagist.org/packages/mattfanz/twig-spreadsheet-bundle)[ Docs](https://github.com/MewesK/TwigSpreadsheetBundle)[ RSS](/packages/mattfanz-twig-spreadsheet-bundle/feed)WikiDiscussions master Synced today

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

TwigSpreadsheetBundle
=====================

[](#twigspreadsheetbundle)

[![Teavis CI: Build Status](https://camo.githubusercontent.com/c123aa1410e4d2fbe67968f82453fcb4e27de6445811d093d1564af10ac45ff7/68747470733a2f2f7472617669732d63692e6f72672f4d657765734b2f54776967537072656164736865657442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/MewesK/TwigSpreadsheetBundle)[![Scrutinizer: Code Quality](https://camo.githubusercontent.com/4cb901e2db852ed79c321057683665f30d5e1a7ce8cdac98879c4c03c3e42a6f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d657765734b2f54776967537072656164736865657442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MewesK/TwigSpreadsheetBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/0baaae313dcc458c24a3098aeb173c153f84745421a59de8f65c0c9bc115dea7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d657765734b2f54776967537072656164736865657442756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/MewesK/TwigSpreadsheetBundle/?branch=master)[![SensioLabsInsight: Code Quality](https://camo.githubusercontent.com/edb1e5736be98c4fb9d7105d031edcbd6f10a040a8ab135988a0d9c010682942/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66356332356562652d306362632d346265312d613039342d3465663837643438656131622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f5c25ebe-0cbc-4be1-a094-4ef87d48ea1b)

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

Features
--------

[](#features)

- Easy to use Twig integration including `macro` and `include` support
- Use existing spreadsheet files as templates. The easiest way to customize fonts, colors, etc.
- ...

Supported output formats
------------------------

[](#supported-output-formats)

The supported output formats are directly based on the capabilities of PhpSpreadsheet.

- Open Document Format/OASIS (.ods)
- Office Open XML (.xlsx) Excel 2007 and above
- BIFF 8 (.xls) Excel 97 and above
- CSV
- PDF (using mPDF, which need to be installed separately)

Software requirements
---------------------

[](#software-requirements)

The following software is required to use PhpSpreadsheet/TwigSpreadsheetBundle.

**Required by this bundle:**

- PHP 7.0 or newer
- Symfony 3.2 or newer

**Required by PhpSpreadsheet:**

- PHP extension php\_zip enabled
- PHP extension php\_xml enabled
- PHP extension php\_fileinfo enabled
- PHP extension php\_gd2 enabled (optional, but required for exact calculation of the column width)

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

[](#documentation)

The source of the documentation is stored in the Resources/doc/ folder in this bundle:

[Resources/doc/index.rst](https://github.com/MewesK/TwigSpreadsheetBundle/blob/master/src/Resources/doc/index.rst)

You can find a prettier version on readthedocs.org:

[https://twigspreadsheetbundle.readthedocs.org](https://twigspreadsheetbundle.readthedocs.org/)

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

[](#installation)

All the installation instructions are located in the documentation.

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

[Resources/meta/LICENSE](https://github.com/MewesK/TwigSpreadsheetBundle/blob/master/LICENSE)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.5% 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 ~42 days

Total

2

Last Release

2841d ago

### Community

Maintainers

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

---

Top Contributors

[![MewesK](https://avatars.githubusercontent.com/u/1128271?v=4)](https://github.com/MewesK "MewesK (277 commits)")[![technetium](https://avatars.githubusercontent.com/u/1395591?v=4)](https://github.com/technetium "technetium (2 commits)")[![chebbix](https://avatars.githubusercontent.com/u/3942104?v=4)](https://github.com/chebbix "chebbix (1 commits)")[![darookee](https://avatars.githubusercontent.com/u/104579?v=4)](https://github.com/darookee "darookee (1 commits)")[![davidromani](https://avatars.githubusercontent.com/u/698779?v=4)](https://github.com/davidromani "davidromani (1 commits)")[![0xFanz](https://avatars.githubusercontent.com/u/22544927?v=4)](https://github.com/0xFanz "0xFanz (1 commits)")[![guiyomh](https://avatars.githubusercontent.com/u/363162?v=4)](https://github.com/guiyomh "guiyomh (1 commits)")[![malheirosrafa](https://avatars.githubusercontent.com/u/1307312?v=4)](https://github.com/malheirosrafa "malheirosrafa (1 commits)")[![fdicioccio](https://avatars.githubusercontent.com/u/3645606?v=4)](https://github.com/fdicioccio "fdicioccio (1 commits)")[![aserratorta](https://avatars.githubusercontent.com/u/12971681?v=4)](https://github.com/aserratorta "aserratorta (1 commits)")

---

Tags

symfonytwigexcelspreadsheetPHPExcelphpspreadsheet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mattfanz-twig-spreadsheet-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mattfanz-twig-spreadsheet-bundle/health.svg)](https://phpackages.com/packages/mattfanz-twig-spreadsheet-bundle)
```

###  Alternatives

[roromix/spreadsheetbundle

This is a Symfony 7.1+ Bundle helps you to read and write Spreadsheet files (including pdf, xls, xlsx, odt, csv), thanks to the PHPSpreadsheet library

24410.2k1](/packages/roromix-spreadsheetbundle)[tales-from-a-dev/twig-tailwind-extra

A Twig extension for Tailwind

34802.1k9](/packages/tales-from-a-dev-twig-tailwind-extra)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[onurb/excel-bundle

Symfony Bundle to read or write Excel file (including pdf, xlsx, odt), using phpoffice/phpspreadsheet library (replacement of phpoffice/phpexcel, abandonned)

15332.0k](/packages/onurb-excel-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

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