PHPackages                             gerben/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. gerben/twig-spreadsheet-bundle

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

gerben/twig-spreadsheet-bundle
==============================

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

1.7(5y ago)010MITPHPPHP &gt;=7.1

Since Jun 17Pushed 5y agoCompare

[ Source](https://github.com/Gerben321/TwigSpreadsheetBundle)[ Packagist](https://packagist.org/packages/gerben/twig-spreadsheet-bundle)[ Docs](https://github.com/erelke/TwigSpreadsheetBundle)[ RSS](/packages/gerben-twig-spreadsheet-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (14)Used By (0)

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

[](#twigspreadsheetbundle)

[![Teavis CI: Build Status](https://camo.githubusercontent.com/0045f754cfce7eb124336c870b848892f96e9b9664d4910dcae5c3286ace487b/68747470733a2f2f7472617669732d63692e6f72672f6572656c6b652f54776967537072656164736865657442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/erelke/TwigSpreadsheetBundle)[![Scrutinizer: Code Quality](https://camo.githubusercontent.com/8483728d32211c61384aa3fb4568ef5341683ce9adcf45889a150cbe84dec467/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572656c6b652f54776967537072656164736865657442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/erelke/TwigSpreadsheetBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/fb6caf43b2cc82f312257e871ec8045579173dddd9001ac5f73eca5335ed3c87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6572656c6b652f54776967537072656164736865657442756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/erelke/TwigSpreadsheetBundle/?branch=master)[![SensioLabsInsight: Code Quality](https://camo.githubusercontent.com/a8eda66997f0be6b9736b0f6177d214ac89160265d348a7df98d4bbd6436aba9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36663164353437372d393637662d343735342d626239352d3530356231613530623731632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/6f1d5477-967f-4754-bb95-505b1a50b71c)

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.1 or newer
- Symfony 3.4 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/erelke/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/erelke/TwigSpreadsheetBundle/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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 ~85 days

Recently: every ~140 days

Total

12

Last Release

1941d ago

PHP version history (2 changes)1.0PHP &gt;=7.0

1.2.4PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![MewesK](https://avatars.githubusercontent.com/u/1128271?v=4)](https://github.com/MewesK "MewesK (277 commits)")[![erelke](https://avatars.githubusercontent.com/u/30900475?v=4)](https://github.com/erelke "erelke (15 commits)")[![Gerben321](https://avatars.githubusercontent.com/u/24865452?v=4)](https://github.com/Gerben321 "Gerben321 (7 commits)")[![technetium](https://avatars.githubusercontent.com/u/1395591?v=4)](https://github.com/technetium "technetium (2 commits)")[![aserratorta](https://avatars.githubusercontent.com/u/12971681?v=4)](https://github.com/aserratorta "aserratorta (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)")[![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)")

---

Tags

symfonytwigexcelspreadsheetPHPExcelphpspreadsheet

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gerben-twig-spreadsheet-bundle/health.svg)](https://phpackages.com/packages/gerben-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)
