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

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

k7/twig-spreadsheet-bundle
==========================

This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.

v1.8.1(1y ago)086MITPHPPHP ^8.1

Since Jun 17Pushed 1y agoCompare

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

READMEChangelogDependencies (12)Versions (21)Used By (0)

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

[](#twigspreadsheetbundle)

[![Teavis CI: Build Status](https://camo.githubusercontent.com/53ab6f80609187d0602eb2f77518ca14f840e6bf8efc9038279a1b031979ae48/68747470733a2f2f7472617669732d63692e6f72672f6b6565706572372f54776967537072656164736865657442756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/keeper7/TwigSpreadsheetBundle)[![Scrutinizer: Code Quality](https://camo.githubusercontent.com/1a131672a10fcb98c2cc3d561acb9cc59b0bc09069c6c38f4115a5d61d1ac0b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b65706572372f54776967537072656164736865657442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/keeper7/TwigSpreadsheetBundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/6bd683d463451d153d92257230aaaec7518a5405325a1e3d628bc32c4196a8f4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6565706572372f54776967537072656164736865657442756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/keeper7/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/keeper7/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/keeper7/TwigSpreadsheetBundle/blob/master/LICENSE)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance49

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~353 days

Total

18

Last Release

377d ago

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

1.2.4PHP &gt;=7.1

v1.8.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/53d0c48337f92c0b09319f149b189d9e42047924796457488fbff5ae0c4e1a07?d=identicon)[keeper7](/maintainers/keeper7)

---

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 (16 commits)")[![Gerben321](https://avatars.githubusercontent.com/u/24865452?v=4)](https://github.com/Gerben321 "Gerben321 (6 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

Static AnalysisRector

### Embed Badge

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

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[yellowskies/qr-code-bundle

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

36682.9k](/packages/yellowskies-qr-code-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)[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)[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)

PHPackages © 2026

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